malloc error with NSUnarchiver
malloc error with NSUnarchiver
- Subject: malloc error with NSUnarchiver
- From: Jeremy Dronfield <email@hidden>
- Date: Sat, 29 May 2004 18:13:08 +0100
I'm using an NSUnarchiver in a very long for loop. Each time through
the loop, the unarchiver is initialized and released as follows:
unarchiver = [[NSUnarchiver alloc] initForReadingWith
Data:plaintext];
[unarchiver decodeObject];
if ([unarchiver isAtEnd]) {
// do stuff with decoded data
}
[unarchiver release];
After about 100 times through the loop (the number varies), I get this
error when unarchiver tries to initialize:
*** malloc_zone_malloc[1188]: argument too large: 4294967191
The data object plaintext varies each time through the loop, but it's
never very large. What am I missing here?
Regards,
-Jeremy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.