09-05-2019 03:09 PM
I added a menu, "TCP_IF" to my main panel. Whenever a user select this "TCP_IF" menu, opens a panel to allow type IP address and connect to remote TCP server,a dn send messages once a while.
What I want to do is, if there is a connection established already and user closed the Panel, keep the TCP connection open. When user select the menu again, it will open up the panel again and continue... Somehow, when the panel is opened again, even though the TCP connection handle is valid ( it has the same value as before the panel is closed), I can not use the TCP connection to send message out. What I have to do is to close the connection using the TCP connection handler, and open a TCP connection again ( the TCP connection handle has a new number )
I do not know why?
Many Thanks,
Qing
09-30-2019 02:04 PM
Hi qing22,
Can you post your code or a simplified version of it? This will help clarify a bit more what you're talking about here.
Best,