• 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: program crashes because of a variable declaration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: program crashes because of a variable declaration


  • Subject: Re: program crashes because of a variable declaration
  • From: Graham Cox <email@hidden>
  • Date: Thu, 11 Jun 2009 23:49:43 +1000


On 11/06/2009, at 11:38 PM, Martin Batholdy wrote:

my program crashes if I add a variable declaration to a header file.
I really don't understand what the hell is wrong with it;


Is this the same problem as your earlier post? It seems like maybe you're trying to do stuff with NSObjects before the runtime is initialised properly. Obviously it's not adding the extra ivar that's causing the problem, but some other problem that this exposes. What objects are you creating when? Are you doing anything in main()? Generally your app shouldn't start to do any processing until the app delegate gets the green light in the form of - applicationWillFinishLaunching: or similar.

Try also enabling NSZombieEnabled, as it sounds like you may have a memory management problem (over-release most likely).

--Graham


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >program crashes because of a variable declaration (From: Martin Batholdy <email@hidden>)

  • Prev by Date: Re: program crashes because of a variable declaration
  • Next by Date: Re: Get|SetControlProperty() equivalent
  • Previous by thread: Re: program crashes because of a variable declaration
  • Next by thread: Re: program crashes because of a variable declaration
  • Index(es):
    • Date
    • Thread