Jump to content
uniGUI Discussion Forums

Recommended Posts

I am developing a chat in an application using the SGCWebSocket library, I was able to do the exchange of messages and the list of my users when connecting and disconnecting in the system, however I am encountering some problems when accessing objects in the client application when I try to access the objects in an event of the SGC protocols, generating an access violation.

 

below has the source code that I use in the onEvent of the message protocol, the commented line is where error occur,  when trying to display a notification on the screen(groChat.Show;):

procedure TfrChat.WSProtClientEvent(Connection: TsgcWSConnection; const Channel,
  Text: string);
var
  groChat : TIDSiGrowl;
begin
        groChat := TIDSiGrowl.Create(nil);
        groChat.Text := Text;
        groChat.Title := Channel;
//        groChat.Show;
end;

Share this post


Link to post
Share on other sites

Hi,

 

Could you perhaps show some code how you integrated SGCWebSocket in an uniGUI application?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×