Jump to content

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;
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...