• 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
data formatter running before object is allocated
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

data formatter running before object is allocated


  • Subject: data formatter running before object is allocated
  • From: Steve Mills <email@hidden>
  • Date: Fri, 10 Jan 2014 09:29:54 -0600

Has anybody else seen problems with a data formatter (right-click variable, Edit Summary Format…) being called before the object has actually been allocated? This is happening for me in 5.0.2 when a variable is declared *not* at the top of a block of code:

void Class::Method(void)
{
	if(something) {
		Stuff();
		MoreStuff();

		MyThing		thing;

		thing.run();
		MostStuff();
	}
}

As soon as I step into the if() block, the formatter for MyThing runs, which is not legal, because it hasn't been allocated, so its member variables are uninitted and garbage. Bug or is there a way to prevent that in the data formatter?

--
Steve Mills
office: 952-818-3871
home: 952-401-6255



 _______________________________________________
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


  • Follow-Ups:
    • Re: data formatter running before object is allocated
      • From: Steve Christensen <email@hidden>
  • Prev by Date: Re: WWDC App missing videos
  • Next by Date: Re: WWDC App missing videos
  • Previous by thread: LLVM, STL and ARC
  • Next by thread: Re: data formatter running before object is allocated
  • Index(es):
    • Date
    • Thread