On Sat, Mar 7, 2009 at 4:24 PM, Matt Crocker <mattcroc...@f2s.com> wrote: > Folks, > > I have recently expanded the functionality of my app, and in the process I > have caused an error to occur when the app's document window is closed or > the app is quit. The error is triggered when i call [super dealloc], and the > log reports: > > *** -[MyDocument respondsToSelector:]: message sent to deallocated instance > 0x15b9d0 > > My problem is that I don't know how to work out which part of MyDocument is > causing the error (0x15b9d0 is the address if MyDocument), probably due to a > lack of experience. > > Can anyone give me any pointers of how to proceed? I've tried a few obvious > things such as removing the "release" commands in the dealloc method, and am > loathed to start removing big chunks of code elsewhere to see what > happens...
You'll want to read through this: http://www.cocoadev.com/index.pl?DebuggingTechniques Pay particular attention to the bits on breaking on exceptions, and NSZombieEnabled. Mike _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com