Re: Why does releasing this array cause a crash?

2009-03-10 Thread James Cicenia
Ah... Thank you. I understand now. James On Mar 10, 2009, at 5:41 PM, Randall Meadows wrote: On Mar 10, 2009, at 4:35 PM, James Cicenia wrote: NSMutableArray *arraySubType = [[NSMutableArray alloc]init]; OK, this array, you *should* release, yes. Then in a loop from the database I have:

Re: Why does releasing this array cause a crash?

2009-03-10 Thread Randall Meadows
On Mar 10, 2009, at 4:35 PM, James Cicenia wrote: NSMutableArray *arraySubType = [[NSMutableArray alloc]init]; OK, this array, you *should* release, yes. Then in a loop from the database I have: while (sqlite3_step(statement) == SQLITE_ROW) { if(![aDict objectForKey: [NSString stringWithUT

Why does releasing this array cause a crash?

2009-03-10 Thread James Cicenia
Hello I am confused on this one: In my method I have a local array: NSMutableArray *arraySubType = [[NSMutableArray alloc]init]; Then in a loop from the database I have: while (sqlite3_step(statement) == SQLITE_ROW) { if(![aDict objectForKey: [NSString stringWithUTF8String:(char *)sqlite3