Cocoa/Java; random crashes
Cocoa/Java; random crashes
- Subject: Cocoa/Java; random crashes
- From: Bill Bumgarner <email@hidden>
- Date: Thu, 20 Mar 2003 14:15:45 -0500
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.