• 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: App crashes when debugging, not in normal execution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: App crashes when debugging, not in normal execution


  • Subject: Re: App crashes when debugging, not in normal execution
  • From: "Michael Crawford" <email@hidden>
  • Date: Fri, 21 Sep 2007 16:20:40 -0700

It might be an uninitialized variable.  They'll pick up whatever value
happened to be left in memory by the last user of it.  Possibly when
you debug your memory is laid out differently.

One way to check for this is to malloc a big buffer at the beginning
of main, fill it with 0xFF bytes, then free it.  Try filling it with
other values too.

Is your program written in C++?  Do you initialize all your member
variables in constructor initialization lists?  If not you should.
While class or struct types will have their default constructor called
if you don't mention them explicitly in the initialization lists,
scalar types are not initialized by default.

Hope this helps.

Mike Crawford
mdcrawford at gmail dot com

   Download my music at http://www.geometricvisions.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

References: 
 >Re: App crashes when debugging, not in normal execution (From: Red Marble Games <email@hidden>)
 >Re: App crashes when debugging, not in normal execution (From: Paul Russell <email@hidden>)
 >Re: App crashes when debugging, not in normal execution (From: Axel Balley <email@hidden>)

  • Prev by Date: Re: App crashes when debugging, not in normal execution
  • Next by Date: Re: Shared lib load/unload functions
  • Previous by thread: Re: App crashes when debugging, not in normal execution
  • Next by thread: End-Of-File question
  • Index(es):
    • Date
    • Thread