Re: [OBJC newbie] - Intance variable becomes 'invalid'
Re: [OBJC newbie] - Intance variable becomes 'invalid'
- Subject: Re: [OBJC newbie] - Intance variable becomes 'invalid'
- From: Moray Taylor <email@hidden>
- Date: Wed, 31 May 2006 19:54:14 +0100
How are you creating the string? It's probably being autoreleased
(like Java's Garbage collection, but not as nice.)
Moray
Just learning OBJC...
I have a class with an NSString * instance variable.
Class has two methods, method a sets a value into the string, when
method b is called and tries to access the string it crashes my
app. gdb says the string instance is 'invalid'.
How can an instance variable become invalid? What does it even mean?
I suspect that since OBJC uses pointers everywhere that the
instance got stamped on somehow?
I have been living in the safe world of Java for too long I fear.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40dataactive.com
This email sent to email@hidden
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/
email_________________________________________________________________
_____
_______________________________________________
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