• 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
Re: XML Resource Release
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >XML Resource Release (From: Bing Li <email@hidden>)

  • Prev by Date: Re: XML Resource Release
  • Next by Date: Re: XML Resource Release
  • Previous by thread: Re: XML Resource Release
  • Next by thread: Re: XML Resource Release
  • Index(es):
    • Date
    • Thread