Re: Debugging - Finding when a value changed
Re: Debugging - Finding when a value changed
- Subject: Re: Debugging - Finding when a value changed
- From: Cameron Hayne <email@hidden>
- Date: Mon, 22 Jul 2002 11:59:36 -0400
On Monday, July 22, 2002, at 03:32 am, David Newberry wrote:
I'm having trouble tracking down a bug. I have an object with an
instance variable, and that variable has the correct value when the
object is created. However, later on in the program, the value has
changed, and I cannot for the life of me figure out where it changes.
If this instance variable is a pointer, is it possible that this is
simply due to the object to which that variable points having been
released ? If you initialized that variable with the value returned from
some method, it is quite likely that the method auto-released the
object. In general you need to 'retain' all instance variables that you
did not 'alloc'.
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.