Appllication will not closed correctly

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
Programmnix
Posts: 1
Joined: Fri Jan 13, 2017 7:55 am

Appllication will not closed correctly

Post 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

User avatar
Jae V
Posts: 118
Joined: Wed Jan 15, 2020 11:00 am

Re: Appllication will not closed correctly

Post 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.
Best regards,
Jason
(801) 708-6690
Technical Support
Contact Us



Beijer Electronics AB
http://www.beijerelectronics.us

Post Reply