LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

tcp callback causes application to temporarily hang

At times, I am receiving data constantly from the TCP server without sending any data back. Every once in a while when some system event happens (clicking a button, reading TCP data, displaying a popup, etc.) CVI goes inot the TCP callback loop and keeps calling it telling my that data is ready. This causes my application to stall from several seconds to a few minutes (I have not had it completely stop yet). I have attempted to find a way to ignore all the callbacks caused by the server (I don't really care about the disconnect or dataready flags), but I have had no luck in doing this. Any ideas?
0 Kudos
Message 1 of 4
(3,355 Views)
Hello

Instead of ignoring the events, try placing ProcessSystemEvents() inside the callback, so if is called extensivly, any messages that have been queued up will be processed.

let me know how it goes
Thanks

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 4
(3,355 Views)
Did this solution worked?
0 Kudos
Message 3 of 4
(3,355 Views)

I am having this same problem, but the ProcessSystemEvents() solution did not work.

 

Please help

0 Kudos
Message 4 of 4
(3,085 Views)