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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...