Re: XML Resource Release
Re: XML Resource Release
- Subject: Re: XML Resource Release
- From: Conrad Shultz <email@hidden>
- Date: Wed, 18 May 2011 11:18:54 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bing Li wrote:
> But, if the releasing lines are changed as follows, it gets exceptions.
>
> ....
>
> [passwordElement release];
> [peerNameElement releases]; // The line is added.
> [root release];
> [xmlDoc release];
> [xmlStr release];
> [data release];
>
> ....
>
> Could you please figure out what is the problem?
a) As general advice, please post your actual code; I am quite certain
you don't mean -releases (plural).
b) You are violating memory management rules multiple times. Please see
the very recent threads on "[creating] NSMenuItem without memory leaks"
and on creating autorelease pools - the links Nick provided in the
latter and the advice I offered in the former are applicable here too.
- --
Conrad Shultz
Synthetiq Solutions
www.synthetiqsolutions.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAk3UDY0ACgkQaOlrz5+0JdWpqwCeIwhp/b9VNRJo9rsJx2QYIGJC
ehoAn00b/gyya7hCd26/wxvbL8R9M2zJ
=uilz
-----END PGP SIGNATURE-----
_______________________________________________
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