Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan

Old Stuff => Chapter 17 - Memory Management => : john67 August 28, 2011, 11:33:12 AM



: prog 17.1 retainCount 7fffffffffffffff
: john67 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.

: (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?




: Re: prog 17.1 retainCount 7fffffffffffffff
: Waiting August 28, 2011, 01:52:37 PM
http://classroomm.com/objective-c/index.php?topic=5209.0 (http://classroomm.com/objective-c/index.php?topic=5209.0)


: Re: prog 17.1 retainCount 7fffffffffffffff
: john67 August 28, 2011, 02:33:18 PM
thanks - answers my question


Sorry, the copyright must be in the template.
Please notify this forum's administrator that this site is missing the copyright message for SMF so they can rectify the situation. Display of copyright is a legal requirement. For more information on this please visit the Simple Machines website.