Skip navigation.
 
mlRe: NSSpellChecker crashes after 64k words
FROM : Dan Saul
DATE : Mon Apr 11 18:22:14 2005

Perhaps splitting the string into multiple strings to be checked,
split every 63K words.

On Apr 10, 2005 7:35 PM, Denis Stanton <<email_removed>> 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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/daniel.<email_removed>
>
> This email sent to daniel.<email_removed>
>
>

Related mailsAuthorDate
mlNSSpellChecker crashes after 64k words Denis Stanton Apr 11, 02:35
mlRe: NSSpellChecker crashes after 64k words Dan Saul Apr 11, 18:22
mlRe: NSSpellChecker crashes after 64k words Denis Stanton Apr 12, 10:47
mlRe: NSSpellChecker crashes after 64k words Louis C. Sacha Apr 12, 12:07
mlRe: NSSpellChecker crashes after 64k words The Karl Adam Apr 12, 17:07
mlRe: NSSpellChecker crashes after 64k words Evan DiBiase Apr 12, 17:41
mlRe: NSSpellChecker crashes after 64k words Louis C. Sacha Apr 13, 01:02
mlRe: NSSpellChecker crashes after 64k words Hamish Allan Apr 13, 02:23
mlRe: NSSpellChecker crashes after 64k words Denis Stanton Apr 13, 06:20
mlRe: NSSpellChecker crashes after 64k words Denis Stanton Apr 13, 22:38