• 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
Stumped by EXEC_BAD_ACCESS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stumped by EXEC_BAD_ACCESS


  • Subject: Stumped by EXEC_BAD_ACCESS
  • From: David Blanton <email@hidden>
  • Date: Thu, 30 Jul 2009 14:37:00 -0600

When I quit my application it ends as expected.

When I close the last window I get the EXEC_BAD_ACCESS message.

Following Greg Parker's 2006 post at CocoaBuilder I get the following which according to that post respondsToSelector:" is being called on a nil object. As you can see the object_GetClassName() which should tell the call the method is being called on also breaks.


Current language: auto; currently objective-c++ Program received signal: “EXC_BAD_ACCESS”. (gdb) x/s $ecx 0x93c83164 <__FUNCTION__.12370+617988>: "respondsToSelector:" (gdb) x/8x $esp 0xbfffe758: 0x006ec390 0x90a8283b 0x09d818f0 0x93c83164 0xbfffe768: 0x93c24788 0x94063734 0x09d86750 0xa0078b40 (gdb) p (char *)object_getClassName(0x93c83164)

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x7073657a
0x93be3058 in _class_getName ()
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on"
Evaluation of the expression containing the function (object_getClassName) will be abandoned.



[Oddly if I implement - (void)windowWillClose:(id)sender and call [NSApp terminate:self]; the problem goes away]


So if there are any other suggestions I am all ears!

Thx.

db

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Stumped by EXEC_BAD_ACCESS
      • From: Greg Parker <email@hidden>
    • Re: Stumped by EXEC_BAD_ACCESS
      • From: Kyle Sluder <email@hidden>
    • Re: Stumped by EXEC_BAD_ACCESS
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Diagramming (a bit OT)
  • Next by Date: Re: Stumped by EXEC_BAD_ACCESS
  • Previous by thread: Re: Diagramming (a bit OT)
  • Next by thread: Re: Stumped by EXEC_BAD_ACCESS
  • Index(es):
    • Date
    • Thread