Microsoft
Software
Hardware
Network
Question : Orphan threads in .net, are they stopped by Garbage Collector?
If I have an object that has started a thread and at some point I have no references to my object, will the garbage collector also stop the thread as it garbage collects the object?
When the object is reclaimed, there will be no references to the thread object either, but I am unsure if the thread is orphaned and keeps running, or if the thread is stopped and reclaimed.
Answer : Orphan threads in .net, are they stopped by Garbage Collector?
The thread objects will be destroyed when the executable or application domain is terminated.
If your thread has not been aborted or completed its method (orphans), it will stay alive until your application is gone.
Random Solutions
HTTP Error 403.1 publishing WCF Service
Excel function/formula
Dynamics CRM 4.0 Edit an active contract
Windows 2003 Domain controller on a backup server Backup Exec 12.5
sql server agent email job notification in sql server management studio
Microsoft Word can't find the DVZAddin.dll file and Excel can't find DVZXLAddin.dll File?
Exchange 2007 - Test-SystemHealth (Upgrading servicepack 2)
How to manage the decimal separator in SQL Server 2008
Looping through a combo box or a list
Supress SQL login in MSACCESS on linked tables