Amazon.com Widgets prog 17.1 retainCount 7fffffffffffffff
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 18, 2014, 08:21:34 AM
Home Help Search chat Login Register 
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+ Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+ Old Stuff
| |-+ Chapter Study
| | |-+ Chapter 17 - Memory Management
| | | |-+ prog 17.1 retainCount 7fffffffffffffff
Pages: [1] Go Down
Print
Author Topic: prog 17.1 retainCount 7fffffffffffffff (Read 983 times)
john67
Newbie
*
Posts: 32






on: August 28, 2011, 11:33:12 AM

Hi

Just ran program 17.1 (even taking the example program to double check I hadn't made any typos) and the following is the output.

Code: (Objective-C)

2011-08-28 19:09:21.886 Prog17_1[772:707] myInt retain count = 7fffffffffffffff
2011-08-28 19:09:21.887 Prog17_1[772:707] after adding to array = 7fffffffffffffff
2011-08-28 19:09:21.888 Prog17_1[772:707] after assignment to myInt2 = 7fffffffffffffff
2011-08-28 19:09:21.888 Prog17_1[772:707] myInt after retain = 7fffffffffffffff
2011-08-28 19:09:21.889 Prog17_1[772:707] myInt2 after retain = 7fffffffffffffff
2011-08-28 19:09:21.889 Prog17_1[772:707] myInt after release = 7fffffffffffffff
2011-08-28 19:09:21.890 Prog17_1[772:707] after removal from array = 7fffffffffffffff


So it seems that these objects are not to be released then?


Logged
Waiting
Global Moderator
Full Member
*****
Posts: 113






Reply #1 on: August 28, 2011, 01:52:37 PM

http://classroomm.com/objective-c/index.php?topic=5209.0
Last Edit: August 28, 2011, 02:01:40 PM by Waiting Logged
john67
Newbie
*
Posts: 32






Reply #2 on: August 28, 2011, 02:33:18 PM

thanks - answers my question
Logged
Pages: [1] Go Up
Print
Jump to:



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.