Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
July 25, 2017, 01:38:25 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register Chat  
Pages: [1]   Go Down
  Print  
Author Topic: prog 17.1 retainCount 7fffffffffffffff  (Read 1779 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: 114


« 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:  

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 ゥ 2009 classroomM.com. All rights reserved.