Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thread.Join()
Message
 
To
08/07/2005 14:40:42
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
01030642
Message ID:
01030792
Views:
16
>> Unless you have gone out of your way to design code that will cause the thread not to Abort in a timely manner, you will be safe.

In most cases yes - in others maybe not.

The biggest problem with multi-threaded code is if you want to exit your application and you have outstanding threads. This can cause your app to hang and not unload or in some cases your app to crash.

That's one place where you need to either Join() or Abort() in order to make your app release.

In general you should ALWAYS hang on to a thread reference for at least this task.

If you truly tdo call and forget I suspect an Async delegate might be better and let .NET worry about cleanup.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform