Re: [Q] How do I find out where a variable's type is getting changed?
Re: [Q] How do I find out where a variable's type is getting changed?
- Subject: Re: [Q] How do I find out where a variable's type is getting changed?
- From: Andrew Pinski <email@hidden>
- Date: Sat, 20 Jul 2002 23:52:05 -0400
Basically the object is being released and then the memory
location is being reused for a different type of class.
There is a way to turn on some debugging objects so when
objects are released they are not really released by the
type is changed a specific type that reports when messages are
passed to it.
Thanks,
Andrew Pinski
On Saturday, July 20, 2002, at 11:22 , Rosyna wrote:
This one got me too, I eventually found out what happened and
you have seen what happened from posts on this list. My
question is, why does it happen? What in memory is causing it
to switch classes?
Ack, at 7/20/02, Mark de Jong said:
I've got a variable that starts life as a "NSMutableArray" and
somewhere in the code it gets changed to a "NSIdEnumerator",
according to GDB. I'm not even sure how this can happen.
Needless to say, this is a serious bug that causes other code
to fail. :-) For example, I get a "-[NSIdEnumerator count]:
selector not recognized" message when I try to get the number
of elements in the array.
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
---
Please include any previous correspondence in replies, it helps
me remember what we were talking about. Thanks.
_______________________________________________
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.
_______________________________________________
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.