J
Jagadish
Hi,
My application requires to create a few threads on the
occurance of an event E1 and the same threads need to be
aborted on the occurance of another event E2. Iam not
using .Net thread pool threads. Iam using system threads
by using Thread objects and delegates. Threads are aborted
by making an explicit call to Thread.Abort().
Occurance of events E1 and E2 are not under the control of
my application. My application runs stable for a few hours
but once E1 and E2 start repeatedly occuring at a very
fast rate, new threads are also started and aborted at a
very fast rate. As a result, some threads are not aborted.
Apparently, there is a thread leak, memory leak in my
application.
So, how do i ensure that the threads are aborted and are
removed from memory?
Thanks in advance.
Jagadish
My application requires to create a few threads on the
occurance of an event E1 and the same threads need to be
aborted on the occurance of another event E2. Iam not
using .Net thread pool threads. Iam using system threads
by using Thread objects and delegates. Threads are aborted
by making an explicit call to Thread.Abort().
Occurance of events E1 and E2 are not under the control of
my application. My application runs stable for a few hours
but once E1 and E2 start repeatedly occuring at a very
fast rate, new threads are also started and aborted at a
very fast rate. As a result, some threads are not aborted.
Apparently, there is a thread leak, memory leak in my
application.
So, how do i ensure that the threads are aborted and are
removed from memory?
Thanks in advance.
Jagadish