0

Hello...I have question about thread. Why we have to dispose our thread? What happened if we don't do it? Can I only dispose() method to dispose my thread?

Thanx:)

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by carsein
0

Huh? What are talking about. Thread has no dispose method. GUI elements normally do, but that is something different. Those you have to call because some elements are held onto (i.e. referred to from somewhere) even after all your references have gone out of scope, and some information is sometimes held onto even after you remove them from the GUI. dispose will remove those references, thereby allowing the info to be garbage collected. Threads you simply let run out of scope, or, if the scope is going to continue long after the thread has been created, and long after the thread has finished its work, then set your reference to it to null.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.