Re: 'selector not recognized' ?
Re: 'selector not recognized' ?
- Subject: Re: 'selector not recognized' ?
- From: j o a r <email@hidden>
- Date: Thu, 22 Jul 2004 18:05:58 +0200
My guess would be that you have memory management problems in your
code. When you get spurious "selectors not recognized" it most often
mean that the object that used to be at that location has been
deallocated, and some other object happens to reside at the same memory
address. The usual suspects are instance variables that has been
assigned with class factory methods without being explicitly retained.
One way to track down this type of problems is to use zombies, check
list archives and the documentation for more info on how to use them.
j o a r
On 2004-07-22, at 17.21, Lance Drake wrote:
> 2004-07-22 06:45:48.690 M4[928] *** -[NSCFDictionary length]: selector
> not recognized
> 2004-07-22 06:45:48.690 M4[928] *** -[NSCFDictionary length]: selector
> not recognized
> Timed out fetching data. Variable display may be inaccurate.
>
> Although I get no errors at compile time - and no errors if just
> 'build & run' - when stepping thru my code, the console receives many
> messages such as shown above - and the 'step-over' time is in the 5 to
> 10-second range. At some point an "Unable to disassemble ??. Program
> received signal: "EXC_BAD_ACCESS"." msg appears and the game is over.
>
> I guess the perplexing thing is that I don't seem to be doing anything
> (at the time) that would tend to generate such a message. For
> instance,
>
> OSErr err = [mDsrc acquireList:sectionSubDefDict];
>
> generates these lines into the console:
>
> 2004-07-22 09:10:47.708 TestApp[1089] *** -[TestAppMain length]:
> selector not recognized
> 2004-07-22 09:10:47.717 TestApp[1089] *** -[TestAppMain length]:
> selector not recognized
>
> Other messages, such as below, appear in response to code such as:
>
> if((NULL != (void*)myDictionary) && (NULL != (void*)myString)) //
> don't access garbage
> {
> ...
> }
>
> 2004-07-22 09:13:13.400 TestApp[1089] *** -[NSCFString count]:
> selector not recognized
> 2004-07-22 09:16:35.466 TestApp[1089] *** -[NSCFDictionary length]:
> selector not recognized
>
> Evidently, this whole issue is most problematic with 10.2.8 targeted
> executables. The 10.3 world does not seem to suffer any ill effects
> from all of this - on occcasion, the 10.2 SDK generated executables
> that are not reliable, consistent or deterministic - depending on your
> favorite vocabulary for such anomalies.
>
> Any thoughts on how best to move away from this badness?
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.