[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug in NSApplication
From: |
Frederic De Jaeger |
Subject: |
bug in NSApplication |
Date: |
30 Jun 2002 12:38:36 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Hi,
I often see gui apps crashing on quit. So a decided to debug one to
see what's happened and I saw something that looks like a bug even if
it's not necessary the origin of all the crashs.
When I press 'Quit', it calls [NSApplication terminate] which destroy
the current application object. But then, we are very deep in the
call stack :
#7 0x4044d0c2 in _i_NSObject__release (self=0x81a4a58, _cmd=0x402bcf30)
at NSObject.m:1376
#8 0x400b8039 in _i_NSApplication__terminate_ (self=0x81a4a58, _cmd=0x8071ee0,
sender=0x82f0168) at NSApplication.m:2311
#9 0x4044cde1 in _i_NSObject__performSelector_withObject_ (self=0x81a4a58,
_cmd=0x402bc868, aSelector=0x8071ee0, anObject=0x82f0168) at NSObject.m:1313
#10 0x400b444c in _i_NSApplication__sendAction_to_from_ (self=0x81a4a58,
_cmd=0x402de240, aSelector=0x8071ee0, aTarget=0x0, sender=0x82f0168)
at NSApplication.m:1468
#11 0x40155480 in _i_NSMenu__performActionForItemAtIndex_ (self=0x82d96d0,
_cmd=0x402df968, index=7) at NSMenu.m:748
#12 0x4015db0a in _i_NSMenuView__trackWithEvent_ (self=0x82db158,
_cmd=0x402df9d8, event=0x8301518) at NSMenuView.m:1073
#13 0x4015df56 in _i_NSMenuView__mouseDown_ (self=0x82db158, _cmd=0x403032b0,
theEvent=0x8305d70) at NSMenuView.m:1116
#14 0x4021af4f in _i_NSWindow__sendEvent_ (self=0x82da428, _cmd=0x402bc7f0,
theEvent=0x8305d70) at NSWindow.m:2710
#15 0x400b3ed1 in _i_NSApplication__sendEvent_ (self=0x81a4a58,
_cmd=0x402bc520, theEvent=0x8305d70) at NSApplication.m:1383
#16 0x400b2239 in _i_NSApplication__run (self=0x81a4a58, _cmd=0x8071f00)
at NSApplication.m:948
and as you can see, after the [NSApplication terminate] returns, we
are in frames that correspond to method call of objects which are all
dead...
maybe I do something wrong, should I RETAIN(NSApp) at the beginning of
my program and RELEASE(it) at the end?
Cordially,
Frédéric De Jaeger
- bug in NSApplication,
Frederic De Jaeger <=