G
Guest
Hi,
I have a VB Windows Forms app that has a single form ('MainForm'). MainForm
has a shared (C#: static) class variable that holds a reference to a newly
created Thread. This thread does some work and then supends itself
(Thread.CurrentThread.Suspend()). When the user closes the MainForm window
the application does not quit since it has one thread that is not finished
(the one which is suspended).
What is the suggested way of quitting an application that might have
suspended and/or waiting (sleeping) threads?
Thanks for any ideas,
Guido
I have a VB Windows Forms app that has a single form ('MainForm'). MainForm
has a shared (C#: static) class variable that holds a reference to a newly
created Thread. This thread does some work and then supends itself
(Thread.CurrentThread.Suspend()). When the user closes the MainForm window
the application does not quit since it has one thread that is not finished
(the one which is suspended).
What is the suggested way of quitting an application that might have
suspended and/or waiting (sleeping) threads?
Thanks for any ideas,
Guido