NSXML & Auto Release Pools
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