multithreading exit doesn't kill my threads

    Date: 05/08/05 (C Sharp)    Keywords: no keywords

    I'm writing an application that copies files from one place to another, and for obvious reasons, I'm using a background thread to do the actual copying. One thing I've run into is that if I exit the application while the background thread is copying a big file, the UI closes, but the background thread continues to execute. Does this mean I need to override the application.exit method to kill the background thread, or what is the best way to handle this?

    Any help is appreciated!

    Source: http://www.livejournal.com/community/csharp/28966.html

« BitSet || viewing certificate... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home