Object survival

xiaoxiao2021-03-06  59

If it is a local object, outside the role, theory is invalid. However, there is a need to have a NET framework for automatic recycling. Or call gc.collect () can be recycled manually and see the recycled effect.

If one of the objects in the object is running in another thread, although this object has been disengaged from the scope, it is still not recycled, and the object must be recycled after the thread is ended.

转载请注明原文地址:https://www.9cbs.com/read-117215.html

New Post(0)