I have a EXC_BAD_ACCESS
error. I used Profile in xCode 4 to see what is happening with memory and saw that it is zombie event:
An Objective-C message was sent to a deallocated object(zombie) at address ...
I found mentioned address in Object List. Responsible caller is
-[NSWindowTemplate nibInstantiate]
Zombie Responsible Caller - [NSApplication(NSWindowCache) _checkForTerminateAfterLastWindowClosed: saveWindows:]
Before zombie event there're -[NSWindow _close]
, [NSWindow retain]
and several [NSWindow release]
events (Ref count = 0 after last [NSWindow release]
)
EXC_BAD_ACCESS
occurs when I close application. I commented all code so nothing is executing after launching of application. I launch it and immediately close - and error fires.
Why _checkForTerminateAfterLastWindowClosed
launch, how to prevent EXC_BAD_ACCESS
?Any ideas?
Thanks
An Objective-C message was sent ...
- when I click "Done" - Object Summary opens where last records are[NSWindow _close]
,[NSWindow retain]
,[NSWindow release]
and then[NSApplication(NSWindowCache) _checkForTerminateAfterLastWindowClosed: saveWindows:]
. I updated a little bit my initial post – Timothytimour