Re: Properly Releasing NSWindows
Re: Properly Releasing NSWindows
- Subject: Re: Properly Releasing NSWindows
- From: Allan Odgaard <email@hidden>
- Date: Fri, 16 Apr 2004 05:47:02 +0200
On 16. Apr 2004, at 4:22, email@hidden wrote:
[...] "setReleasedWhenClosed(true)" for good measure.
I know *nothing* about the Cocoa/Java-bridge and how the mix GC of Java
with retain count in ObjC, but: the releasedWhenClosed instructs the
window object to release itself when it is getting closed. Is it
possible that this is the problem? i.e. the window is destroyed from
the ObjC-side w/o Java's knowledge, and when doing GC the next time,
the collector will send an extra release to the object, because it is
no longer used, but the object was already destroyed and thus no longer
exists.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.