Thread not stopped after program close.

Started by
1 comment, last by remigius 13 years, 6 months ago
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?
Advertisement
Not DirectX related; moving to General Programming.

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.
Rim van Wersch [ MDXInfo ] [ XNAInfo ] [ YouTube ] - Do yourself a favor and bookmark this excellent free online D3D/shader book!

This topic is closed to new replies.

Advertisement