Hi guys,
I created a new method to get TimesAndSales and send through pub socket, this method is called by OnTick(I also tried to use OnTimer too) and before each message be sent(InformPullClient call) I'm printing the log of the information that will be sent, but a lot of messages are being printed but were not sent.
After some network analysis and many tests on the code, I identified that it is a problem of thread competition, only works when I put a high Sleep or when I run via Script mode (It seems that in this mode it is totally synchronous) .. I also implemented a Mutex to lock and control the flow but didn't work.
Any idea?
Hi guys, I created a new method to get TimesAndSales and send through pub socket, this method is called by OnTick(I also tried to use OnTimer too) and before each message be sent(InformPullClient call) I'm printing the log of the information that will be sent, but a lot of messages are being printed but were not sent. After some network analysis and many tests on the code, I identified that it is a problem of thread competition, only works when I put a high Sleep or when I run via Script mode (It seems that in this mode it is totally synchronous) .. I also implemented a Mutex to lock and control the flow but didn't work. Any idea?