crash on apple event quit
crash on apple event quit
- Subject: crash on apple event quit
- From: Eric Cole <email@hidden>
- Date: Fri, 2 May 2003 17:38:26 -0700
The following application will crash in response to a quit apple event:
int main( int argc , char *argv[] ) {
[[NSAutoreleasePool alloc] init];
[NSApplication sharedApplication];
[[NSStatusBar systemStatusBar]
statusItemWithLength:NSSquareStatusItemLength];
[NSApp run];
return 0;
}
The stack crawl looks like this:
#0 0x9068ba54 in objc_msgSend
#1 0x907e2660 in NSPopAutoreleasePool
#2 0x90821928 in +[NSAutoreleasePool releaseAllPools]
#3 0x931703e8 in -[NSApplication _deallocHardCore:]
#4 0x93155a74 in -[NSApplication terminate:]
#5 0x9323a4fc in -[NSApplication _terminateSendShould:]
#6 0x9068c258 in objc_msgSendv
#7 0x907ed17c in -[NSInvocation invoke]
#8 0x907e521c in __NSFireTimer
#9 0x90163230 in __CFRunLoopDoTimer
#10 0x90148d28 in __CFRunLoopRun
#11 0x90180f58 in CFRunLoopRunSpecific
#12 0x969a3b70 in RunCurrentEventLoopInMode
#13 0x969b3b00 in ReceiveNextEventCommon
#14 0x969dabbc in BlockUntilNextEventMatchingListInMode
#15 0x9308dedc in _DPSNextEvent
#16 0x930a0158 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
#17 0x930b1d88 in -[NSApplication run]
#18 0x00005b60 in main
#19 0x000042ec in _start
#20 0x0000416c in start
$r4 points to "release"
$r3 points to an already disposed object of unknown type
calling [NSApp stop:]; does not cause a crash, but sending the
application a normal quit apple event does cause a crash every time.
The application is an NSUIElement if that affects things.
Any suggestions?
Thanks
Eric
_______________________________________________
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.