Re: NSSpellChecker crashes after 64k words
Re: NSSpellChecker crashes after 64k words
- Subject: Re: NSSpellChecker crashes after 64k words
- From: Dan Saul <email@hidden>
- Date: Mon, 11 Apr 2005 11:22:14 -0500
Perhaps splitting the string into multiple strings to be checked,
split every 63K words.
On Apr 10, 2005 7:35 PM, Denis Stanton <email@hidden> wrote:
> 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
>
> Denis Stanton
> Orcon Internet Limited
> (09) 480 9299
> http://www.orcon.net.nz
>
>
> _______________________________________________
> 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
>
>
_______________________________________________
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