Re: Cocoa/Java; random crashes
Re: Cocoa/Java; random crashes
- Subject: Re: Cocoa/Java; random crashes
- From: Niko Matsakis <email@hidden>
- Date: Thu, 20 Mar 2003 14:53:06 -0500 (EST)
Your problem is almost certainly the fact that any object you pass to a cocoa
object is not tracked by the java garbage collector, so it is probably being
garbage collected. Or are you asking for tips on how to track down which
objects are being prematurely freed? In that case, I have no suggestions.
niko
On Thu, 20 Mar 2003, Bill Bumgarner wrote:
>
I'm seeing random crashes as I switch between different hunks of user
>
interface in my Cocoa/Java application. The application is
>
implemented in a fashion that is quite similar to System Preferences--
>
big field of icons that swaps in different chunks of UI.
>
>
The crash would appear to be a retain/release memory management issue.
>
However, this is a Cocoa/Java app and I am under the impression that
>
retain/release should not be required in such a situation!
>
>
The actual crash is one of either a ClassCastException, an 'object does
>
not respond to method' or a Seg Fault/Bus Error. I.e. it appears that
>
a reference to an object is being destroyed and a reference to some
>
other object happens to fall into the original references slot.
>
>
Unfortunately, turning on NSZombieEnabled does not reveal the offending
>
over-released object. Worse, it makes the problem go away entirely!
>
>
Does anyone have any pointers for how how to track down and fix such a
>
problem? When something similar cropped up earlier, I ended creating
>
an instance of NSMutableArray into which I shoved a bunch of objects
>
that I suspected might be a cause. It seemed to have fixed the
>
problem. But now the problem is back...
>
>
thanks,
>
b.bum
>
_______________________________________________
>
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.
_______________________________________________
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.