data formatter running before object is allocated
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