Re: Crash when closing window from the menu
Re: Crash when closing window from the menu
- Subject: Re: Crash when closing window from the menu
- From: Jean-Daniel Dupas <email@hidden>
- Date: Mon, 1 Dec 2008 16:26:21 +0100
Le 1 déc. 08 à 15:15, Andre Masse a écrit :
Thanks for your reply Keary,
What I don't understand is why I don't crash if the window is closed
from its close box...
Andre Masse
The order in which the window go offscreen, the window content is
released, etc. is probably not the same if you click on the close
button and if you use the close menu. The windows does not use the
same code path, It is maybe autoreleased in one case and not in the
other, or something else.
On Dec 1, 2008, at 09:08, Keary Suska wrote:
On Dec 1, 2008, at 6:47 AM, Andre Masse wrote:
I've a strange bug that happens if the window is closed by
choosing the "Close" menu and not by clicking in the window's
close box. The window contains master/detail views. I can prevent
the crash if I set the master's table view datasource to nil in
dealloc but I don't understand why this is happening...
Any idea?
Andre Masse
backtrace here:
#0 0x922d5907 in ___forwarding___ ()
#1 0x922d5a12 in __forwarding_prep_0___ ()
#2 0x94ee1cae in -[NSTableView _dataSourceValueForColumn:row:] ()
I would assume that the data source object is being deallocated
before the table view is done with it, especially if the crash
error is Exec Bad Access. This would explain why setting the data
source to nil in dealloc avoids the error. There can be a number of
causes, but there isn't sufficient info to suggest anything further
(IMHO).
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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