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: Keary Suska <email@hidden>
- Date: Mon, 1 Dec 2008 07:08:46 -0700
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