Released object crashes app
- by John Smith
I am using objective-C++ (+Boost) for iPhone development.
I am in a rather tight loop and need to allocate and release a certain object.
The code is something like this.
for (int i=0;i<100;i++)
{
opt = [[FObj alloc] init];
//do stuff with opt
[opt release];
}
The FObj object is something like
@interface FObj
MyCPPObj *…