Page 1 of 1

Appllication will not closed correctly

Posted: Fri Feb 24, 2017 6:56 am
by Programmnix
Hallo,

I've written a script which is listing on a TCP port and wait until a client connect. This use the function "AcceptTcpClient" from the class TcpListener and run in a own Thread.
Until here there is no problem and works very well.

But when I close my application with the action "Close Application" from a Button, the thread will continue listening. This has the bad consequence, that the GUI is closed and the Application will not restart.

Is there a way to get notified like the "Created"-Event to stop all running threads in the background?

Greetings
Programmnix

Re: Appllication will not closed correctly

Posted: Wed Jan 22, 2020 10:56 am
by Jae V
Hello,
We understand that this is a very old post. To help solve this we would need to look closer at your program and help tailor the script to not lock up. If there is anyone who is still experiencing this or similar issues and require assistance, please visit us at https://www.beijerelectronics.us/en-US/ ... ___support or give us call at 801.708.6690. Thank you.