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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to