U
ujjc001
Hello group. I have a vb.net winform app that, in a sub, starts 10
new threads. The sub waits in a loop for these threads to finish
before continuing. The end of the sub thread's sub sets a boolean
which the main sub's loop checks for. So, the problem is, that after
each thread completes it's task, memory is not released and the thread
count does not decrease. The main sub loops for x number of items and
starts these 10 threads for each item. I've used gc.collect and also
Thread.CurrentThread.Abort() at the end of each sub thread's sub.
I've disposed of all objects and set them = nothing and also tried
GC.GetTotalMemory(True) but nothing seems to want to let me release
these threads.
Any help would be much appreciated.
Thanks,
Jeff
new threads. The sub waits in a loop for these threads to finish
before continuing. The end of the sub thread's sub sets a boolean
which the main sub's loop checks for. So, the problem is, that after
each thread completes it's task, memory is not released and the thread
count does not decrease. The main sub loops for x number of items and
starts these 10 threads for each item. I've used gc.collect and also
Thread.CurrentThread.Abort() at the end of each sub thread's sub.
I've disposed of all objects and set them = nothing and also tried
GC.GetTotalMemory(True) but nothing seems to want to let me release
these threads.
Any help would be much appreciated.
Thanks,
Jeff