Wintertree Software Inc.

WSpell ActiveX Spelling Checker

Home Site index Contact us Catalog Shopping Cart Products Support Search

You are here: Home > Support > WSpell > WSpell appears to loop on words like "100th"


WSpell appears to loop on words like "100th"

Problem: I'm calling WSpell's Start method, but I have ShowDialog set to False. When WSpell encounters a word containing a combination of letters and numbers, such as "100th," it appears to loop.

Discussion: Most likely, you have the CatchWordsWithDigits property enabled (set to True). Also most likely, you either are not catching the WordWithDigits event. When WSpell encounters a word containing a mixture of digits and letters, such as "100th," it fires the WordWithDigits event because CatchWordWithDigits is enabled. Because your application does not catch the event, it does not tell WSpell to skip over the word. When your application next calls the Start method, WSpell fires the WordWithDigits event again because "100th" is still the current word. This will continue indefinitely, causing an apparent loop.

Note that a similar problem can be caused by enabling CatchMixedCaseWords but not catching the MixedCaseWord event.

Solution: The easiest solution is to disable CatchWordsWithDigits (or CatchMixedCaseWords). These properties need to be enabled only if your application specifically needs to know if a word contains embedded digits (or mixed letter case). Disabling them in no way restricts WSpell's ability to catch spelling errors.


Home Site index Contact us Catalog Shopping Cart Products Support Search


Copyright © 2015 Wintertree Software Inc.