• 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
NSXML & Auto Release Pools
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSXML & Auto Release Pools


  • Subject: NSXML & Auto Release Pools
  • From: Alan Shouls <email@hidden>
  • Date: Wed, 04 Feb 2009 18:06:02 +0000

Hi

I am having some problems with NSXML and auto relese pools.

I am using NSXML in a C++ and am working through some test cases and have
come across something I can't quite figure out. Here is what I do:

1. Create an Auto Release Pool
2. Create an NSXML object using [NSXMLDocument alloc] initWithData:(NSData
*)data options:NSXMLNodeOptionsNone error:pError]
3. Release the Auto Release Pool
4. Release my NSXML object

I then get a warning NSCFString autoreleased with no pool in place - just
leaking

If, however I do things so that I release my NSXML object before releaseing
the Auto Release Pool - no message.

Does anyone have any insight into why this is happening and what might be
going on here?

Best regards

Alan



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSXML & Auto Release Pools
      • From: James Montgomerie <email@hidden>
    • Re: NSXML & Auto Release Pools
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: NSBezierPath (Modifying Paths)
  • Next by Date: [Q] Control over the "You cannot use the application ... with this version of Mac OS X" string
  • Previous by thread: Re: Drag and drop images to other application using NSFilesPromisePboardType
  • Next by thread: Re: NSXML & Auto Release Pools
  • Index(es):
    • Date
    • Thread