• 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
Autorelease problem with NSKeyedUnarchive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Autorelease problem with NSKeyedUnarchive


  • Subject: Autorelease problem with NSKeyedUnarchive
  • From: Michael Süssner <email@hidden>
  • Date: Thu, 21 Aug 2003 09:31:01 +0200

I have written a small test tool archiving and unarchiving a customized
subclass of NSObject.

Each time
vData = [NSKeyedUnarchiver
unarchiveObjectWithFile:@"/tmp/jwtestarchive"];

...
[vData release];

It seems to workout fine but when the Autorelease pool is finally released,
the tool crashes within the release method of the autolease class.

If I retain the vData object, then I do not run into a memory BAD_ACCESS. I
have studied the release documents and could not find any hint.


Any help?
Michael
_______________________________________________
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.

  • Follow-Ups:
    • Re: Autorelease problem with NSKeyedUnarchive
      • From: Chris Hanson <email@hidden>
    • Re: Autorelease problem with NSKeyedUnarchive
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: QuickTime to NSImage
  • Next by Date: State of threads in crash log
  • Previous by thread: Re: QuickTime to NSImage
  • Next by thread: Re: Autorelease problem with NSKeyedUnarchive
  • Index(es):
    • Date
    • Thread