• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Attaching to a Background Process at Launch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Attaching to a Background Process at Launch


  • Subject: Re: Attaching to a Background Process at Launch
  • From: Scott Ribe <email@hidden>
  • Date: Mon, 14 Jan 2013 17:15:34 -0700

On Jan 14, 2013, at 4:07 PM, Seth Willits wrote:

> Any idea what I should look for to solve the early termination?

First lines of main():

int foo = 1;
while(foo)
	;

That gives you the chance to attach before most things happen, then change value of foo to 0 and go. If it crashes before it gets there, then it's dying in static initialization--which is most often caused by your having some dependence on the order of static/global initialization.

Also, bg tools get crash logs. The location varies, but you could well have a crash log already sitting on your computer that will show you the problem.

--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice





 _______________________________________________
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

References: 
 >Attaching to a Background Process at Launch (From: Seth Willits <email@hidden>)

  • Prev by Date: Attaching to a Background Process at Launch
  • Next by Date: Re: Attaching to a Background Process at Launch
  • Previous by thread: Attaching to a Background Process at Launch
  • Next by thread: Re: Attaching to a Background Process at Launch
  • Index(es):
    • Date
    • Thread