• 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
malloc error with NSUnarchiver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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] initForReadingWithData: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.


  • Prev by Date: Corrupted/broken NSUserDefaults
  • Next by Date: Re: NSTableView addColumn: cells
  • Previous by thread: Corrupted/broken NSUserDefaults
  • Next by thread: Data Source {key value coding-compliant} problem...
  • Index(es):
    • Date
    • Thread