FROM : Denis Stanton
DATE : Mon Apr 11 02:35:16 2005
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
DATE : Mon Apr 11 02:35:16 2005
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
| Related mails | Author | Date |
|---|---|---|
| Denis Stanton | Apr 11, 02:35 | |
| Dan Saul | Apr 11, 18:22 | |
| Denis Stanton | Apr 12, 10:47 | |
| Louis C. Sacha | Apr 12, 12:07 | |
| The Karl Adam | Apr 12, 17:07 | |
| Evan DiBiase | Apr 12, 17:41 | |
| Louis C. Sacha | Apr 13, 01:02 | |
| Hamish Allan | Apr 13, 02:23 | |
| Denis Stanton | Apr 13, 06:20 | |
| Denis Stanton | Apr 13, 22:38 |






Cocoa mail archive

