Re: Attaching to a Background Process at Launch
Re: Attaching to a Background Process at Launch
- Subject: Re: Attaching to a Background Process at Launch
- From: Seth Willits <email@hidden>
- Date: Mon, 14 Jan 2013 17:57:09 -0800
Better information:
It turns out the 255 is me returning -1 from main because of an error. That error stems from
[NSConnection connectionWithRegisteredName:name host:nil] returning nil.
If the debugger (either gdb or lldb) attaches to the background process *before* that NSConnection method is called, it will return nil and then I was returning -1 which was being shown as 255. Otherwise, if the attach happens after the connection is opened it works fine.
Sooo.. how does the debugger affect that?
--
Seth Willits
Araelium Group
http://www.araelium.com
_______________________________________________
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