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
Populate a DataTable from another DataTable
XL Placing a value in an empty Cell with a Visual Basic Rprogram.
Run a PowerPoint Tutorial Before User Log In
VFP dynamic inputmask
how to schedule a daily task run stored procedure with sqlserver 2005
After prg done it seems my Hard Drive is going crazy...
how to disable gridview refresh on select row event
Trigger for INSERT, UPDATE, DELETE - determine which event happened within the trigger?
SQL Sorting Issue
Open a form going to a specific record based on an ID in subform