Hi Stefano,
TWSocket is event driven. Don't loop in OnDataAvailable. Also a Sleep(1)
will not help as Sleep just put the thread into sleep giving priority to
other threads. While sleeping no extra data will be received, the only
thing that will receive data is the running message pump in the Execute
method.
Met vriendelijke groeten,
Wilfried Mestdagh
Op 09-01-18 om 18:14 schreef Stefano Gemma:
I don't know if this could help but sometime I have solved similar
issue (not ICS related) just adding a Sleep(1) in the while loop.
Stefano Gemma
Il 09/01/2018 15:48, Alessandro Miorelli ha scritto:
Hi,
I'm working with ICS and BCB6
All works fine but sometimes I don't receive OnDataAvailable event
anymore.
In attach the code.
Please could you help me
Regards
Ing. Alessandro Miorelli
Software Engineer
---
Questa email รจ stata esaminata alla ricerca di virus da AVG.
http://www.avg.com
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be