• 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: upper limit on retain count
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: upper limit on retain count


  • Subject: Re: upper limit on retain count
  • From: Axel Andersson <email@hidden>
  • Date: Tue, 19 Apr 2005 18:44:14 +0200

On Apr 18, 2005, at 22:43, Ivan S. Kourtev wrote:

(1) is there a documented limit to the retain count?
(2) is there a documented behavior once the retain count max is reached?

In the interest of nothing very much at all, I investigated what would happen when a retain count overflows:


2005-04-19 18:31:33.610 retain[10574] after another one: 4294967292
2005-04-19 18:31:33.610 retain[10574] after another one: 4294967293
2005-04-19 18:31:33.610 retain[10574] after another one: 4294967294
2005-04-19 18:31:33.610 retain[10574] after another one: 4294967295
2005-04-19 18:31:33.610 retain[10574] after another one: 0
2005-04-19 18:31:33.610 retain[10574] after another one: 0
2005-04-19 18:31:33.610 retain[10574] after another one: 0
2005-04-19 18:31:33.611 retain[10574] after another one: 0
2005-04-19 18:31:33.611 retain[10574] after 1 release: 0

So apparently the overflow is controlled. Furthermore, I seem to have created an immortal object as -release has no effect on it. It took my dual 2.5 GHz G5 11 minutes to reach this conclusion (sending the messages, I only actually logged the last 8 retains), so I tend to agree with Joar that this is not a great idea. Maybe if you explained in more detail what you're trying to accomplish, we could give you better answers.

Cheers,

--
Axel Andersson
email@hidden
http://www.zankasoftware.com/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >upper limit on retain count (From: "Ivan S. Kourtev" <email@hidden>)

  • Prev by Date: Re: Gracefully failing on unsupported OS version
  • Next by Date: Re: upper limit on retain count
  • Previous by thread: Re: upper limit on retain count
  • Next by thread: Re: upper limit on retain count
  • Index(es):
    • Date
    • Thread