NSSpellChecker crashes after 64k words
NSSpellChecker crashes after 64k words
- Subject: NSSpellChecker crashes after 64k words
- From: Denis Stanton <email@hidden>
- Date: Mon, 11 Apr 2005 12:35:16 +1200
Hi
I have written a little program to solve a word puzzle. The program puts together possible words by appending permutations of supplied letters and syllables.
To determine whether the resulting string is a valid word I and using NSSpellChecker
NSRange wordRange = [spellChecker checkSpellingOfString: string startingAt: 0];
if (wordRange.length == 0) {
NSlog([NSString stringWithFormat: @" %@ is a word", string]);
}
The problem is my program fails with
Executable “MyApp” has exited due to signal 10 (SIGBUS).
after checking about 64,000 words. I guess it's hitting 64k (65,536) and this is some magic limit in NSSpellChecker.
Does anybody know how to reset whatever counter is causing NSSpellChecker to give up?
I thought at first it was accumulating a large ignored words list, so I added
closeSpellDocumentWithTag but that didn't help, and I see that the ignored word list count is zero so that's not it.
Denis
<x-tad-smaller>Denis Stanton
Orcon Internet Limited
(09) 480 9299
</x-tad-smaller><x-tad-smaller>http://www.orcon.net.nz
</x-tad-smaller><x-tad-smaller>
</x-tad-smaller> _______________________________________________
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