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: Rick Mann <email@hidden>
- Date: Mon, 17 Nov 2008 16:04:55 -0800
Thanks, that helped. I kinda thought the \n would cause it to flush,
but I meant to do this and forgot. Anyway, both this and mWindow seem
valid:
this: 0x0143eb20
mWindow: 0x0147ee20
And yet it crashed.
If I launch first, and then attach the debugger, it stops on a bad
access: 'this' is 0x7. Not sure why calling printf with 'this' would
cause it to crash there, but I'm not at all confident that the GDB
state was correct.
AFAICT, the app doesn't explicitly do anything different based on the
environment.
On Nov 17, 2008, at 09:56:37, Steve Checkoway wrote:
On Mon, Nov 17, 2008 at 09:48:28AM -0800, Rick Mann wrote:
I tried printing the values of this & mWindow, but nothing ever
appears
in the crashing case.
Make sure the stream is getting flushed:
printf( "this: %p\n", this );
fflush( stdout );
--
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
--
Rick
_______________________________________________
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