Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Appllication will not closed correctly
PostPosted: Fri Feb 24, 2017 6:56 am 

Joined: Fri Jan 13, 2017 7:55 am
Posts: 1

Offline
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


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron