Do not stop threads retrieved by Process.Threads - those are operating
system threads, not CLR managed threads. There is no call that allows you to
retrieve a list of all managed threads. Instead, you must keep track of all
the threads that your application has created.
There are three managed threads created when you start a managed
application - the main thread, the GC thread, and a thread used to run
finalizers.
"Matthias Henning" <ma***********@gmx.de> wrote in message
news:Os**************@TK2MSFTNGP12.phx.gbl...
Hallo Allen,
Process.Threads works in general. But I got another problem about
threading. I am using a dongle to protect our software. So when dongle
is removed, all thread but dongle-testing-threads (triggered by
Threading.Timer) should be stopped (suspended). But doing this stops my
app in a way it can't be "reanimated" ? Why? Which threads must not be
stopped?
Thanks in advance
Matthias
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!