Subject Re: Error in websocket
From Robert Diaz <> <Robert Diaz <>>
Date Wed, 19 Jun 2019 12:18:20 +0100
Newsgroups xb2net

Robert Diaz <> Wrote:

>
> > The most likely reason for the error is your code is not thread-safe. The
> > websocket function is executing code in a different thread from the GUI
> > components. You need to create some type of mutex.
>
>
> How to create mutex in my function? Shall i get some samples?
>

My socket object(osock) is instance of xbwebsocket class,i think it's not thread safe. Do I need to change it to xbsocketThread class ?How i will do that?Any example program using this class?


Recent messages in this thread
 
-# Error in websocket Robert Diaz <> 28-May-2019 03:30 am
.-# Re: Error in websocket Boris Borzic <bb> 28-May-2019 10:03 am
..-# Re: Error in websocket Robert Diaz <> 29-May-2019 01:40 am
...-# Re: Error in websocket Boris Borzic <bb> 29-May-2019 09:53 am
....-# Re: Error in websocket Robert Diaz <> 17-Jun-2019 01:28 am
.....-# Re: Error in websocket Boris Borzic <bb> 17-Jun-2019 09:43 am
......-# Re: Error in websocket Robert Diaz <> 19-Jun-2019 12:50 am
.......-# Re: Error in websocket (Current message) Robert Diaz <> 19-Jun-2019 07:18 am
........\# Re: Error in websocket Boris Borzic <bb> 19-Jun-2019 08:55 am