N
news.microsoft.com
I have a very multi-threaded Windows Forms application. There are many
BeginInvoke calls, as well as Thread/ThreadStarts.
My issue is that when I quit my application there are often threads hanging
around that prevent the process from dying.
I've gone through my code line by line looking for orphaned threads, but I'm
unable to figure out where they are being created.
Is there any way to kill all threads spawned by a process without having a
reference to those threads handy?
If not, is there anyway in VS.NET to easily look for these threads? I know
there is the Threads window, but do I have to set a breakpoint in every
possible piece of code to get it to show up in the threads window?
Any tips would be appreciated.
RMD
BeginInvoke calls, as well as Thread/ThreadStarts.
My issue is that when I quit my application there are often threads hanging
around that prevent the process from dying.
I've gone through my code line by line looking for orphaned threads, but I'm
unable to figure out where they are being created.
Is there any way to kill all threads spawned by a process without having a
reference to those threads handy?
If not, is there anyway in VS.NET to easily look for these threads? I know
there is the Threads window, but do I have to set a breakpoint in every
possible piece of code to get it to show up in the threads window?
Any tips would be appreciated.
RMD