wait释放对象锁,线程等待。
在释放对象的资源时发生。
另一个问题是如何根据对象的范围自动释放对象。
The other issue is how to automatically release objects based on their scopes.
如果程序在垃圾收集器释放对象之前结束,这种情况就可能会出现。
This can occur if the program ends prior to the garbage collector freeing the object.
我应该在重新分配给分配到保留属性自动释放对象的释放?
Should I call release on an autorelease object assigned to a retained property before reassigning it?
如果标识出每个对象的范围,就可以指定在这个范围结束时自动释放对象。
If you identify the intended scope of each object, you might specify to automatically release objects at the end of the scope.
作为语句,用于定义一个范围,在此范围的末尾将释放对象。
As a statement, when it defines a scope at the end of which an object will be disposed.
作为一个标记接口,我们认为它可以用于通知用户在可能的时候即刻释放对象。
As a marker interface, we thought it would be useful to notify users that the should eagerly release this object if possible.
这不仅使开发人员不必在代码中显式地释放对象,还可以减少内存泄漏的风险。
This not only frees the developer from responsibility for explicitly releasing objects in code, but also reduces the risk of memory leakage.
因为不用考虑合适的释放对象页面的队列,所以不需做决定,这是GC的工作。
No decision needed to be made regarding the proper sequence of freeing this web of objects; it's the GC's job.
自动内存管理可解决常见问题,例如,忘记释放对象并导致内存泄漏,或尝试访问已释放对象的内存。
Automatic memory management can eliminate common problems, such as forgetting to free an object and causing a memory leak, or attempting to access memory for an object that has already been freed.
如果必要,可以从该点继续执行程序,以查看对象发生了什么情况,或许可以确定未正确释放对象的原因。
If necessary, you can continue execution of the program from that point to see what happens to the object and perhaps determine why it is not properly deallocated.
使用它通知对象管理器会话范围已经结束(或即将结束),应该释放对应的对象。
Use it to notify object managers that a session scope has ended (or is about to end) and to release the corresponding objects.
使用它通知对象管理器应用程序范围已经结束,应该释放对应的对象。
Use it to notify object managers that an application scope has ended and to release the corresponding objects.
使用它通知对象管理器请求范围即将结束,应该释放对应的对象。
Use it to notify the object manager that a request scope is about to end and to release the corresponding objects.
获取和释放对运行COM对象的引用类似于获取和释放对其他任何运行托管对象的引用。
Obtaining and releasing a reference to a running COM object is just like obtaining and releasing a reference to any other running managed object.
获取和释放对运行COM对象的引用类似于获取和释放对其他任何运行托管对象的引用。
Obtaining and releasing a reference to a running COM object is just like obtaining and releasing a reference to any other running managed object.
应用推荐