• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cocoa/Java; random crashes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Cocoa/Java; random crashes
      • From: Niko Matsakis <email@hidden>
  • Prev by Date: Re: MouseDown of superclass
  • Next by Date: Re: dylib problem
  • Previous by thread: widget 'groups'
  • Next by thread: Re: Cocoa/Java; random crashes
  • Index(es):
    • Date
    • Thread