阅读背景:

.NET GC是否会与一个被遗弃的对象混淆地异步执行一个方法?

来源:互联网 

In .Net, suppose I instantiate an object that starts an asynchronous process (using Delegate.BeginInvoke on one of its methods), then abandon the object by setting the reference to it to null or allowing it to go out of scope. Will the Garbage Collector attempt to collect the object while the asynchronous process is in progress? If not, what is preventing it from collecting the object?In .Net, suppose I instantiate an object that s




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: