• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSSpellChecker crashes after 64k words
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSSpellChecker crashes after 64k words
      • From: Dan Saul <email@hidden>
  • Prev by Date: Re: progress bar on sheet
  • Next by Date: Structuring multi-framework projects
  • Previous by thread: AutoSave Name
  • Next by thread: Re: NSSpellChecker crashes after 64k words
  • Index(es):
    • Date
    • Thread