Re: App crashes when launched from finder, but not when launched from debugger or command line
Re: App crashes when launched from finder, but not when launched from debugger or command line
- Subject: Re: App crashes when launched from finder, but not when launched from debugger or command line
- From: Steve Checkoway <email@hidden>
- Date: Tue, 18 Nov 2008 07:38:20 -0800
On Nov 18, 2008, at 2:14 AM, Rick Mann wrote:
I've discovered the problem. I was failing to initialize a member to
null, so when that object was requested, it wasn't getting (lazily)
constructed. When launching under the debugger, that member was
getting set to null, but when launched in the Finder, it was being
set to a non-zero value (always 0x7).
So, out of curiosity, how might I have found this missing
initialization using one of the tools? Could it have been found? It
seems like a malloc that initializes the memory to some invalid and
easily-noticed patter would've helped.
See <http://developer.apple.com/documentation/Performance/Conceptual/ManagingMemory/Articles/MallocDebug.html
> and in particular, MallocPreScribble.
--
Steve Checkoway
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden