I'm using C# .Net in VS 2008.
I want to close all my thread before the main form is closed.
I've used OnClosed event and there I Aborted all my threads.
But still sometimes[\b], the task manager shows my program running. And I have to close it using 'End Process'.
Why my threads are still running though I've aborted them?
Any idea?
Thread not stopped after program close.
According to this documentation aborting a thread is rather a best-effort thing:
Quote:The thread is not guaranteed to abort immediately, or at all.
It might be more useful to convert your threads to be background threads instead.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement