"Error replacing word (probably out of space)" error message

You are here: Home > Support > WSpell

Product: WSpell

Problem: When checking text using the TextControlHWnd property or with the ShowContext property set to True, the message "Error replacing word (probably out of space)" appears when the user clicks the Change button in the spelling dialog box.

Solution: Standard text boxes in Windows can hold about 32K of text. If this limit is reached, any attempt to add characters to the text box will fail. The error message is displayed if an attempt to add characters to a text box fails. When the ShowContext property is True, the spelling dialog displays the text being checked in a text box which has the same 32K limit.

If you are using the TextControlHWnd property, the solution is to use a rich-text box instead of a text box. Rich-text boxes have a limit of about 16Mb. If you are using the ShowContext property, break the text into smaller chunks that will fit into the 32K limit with room for expansion.

Wintertree Software Inc.

Site index:


[Home] [Products] [Catalog] [Ordering] [Search] [Contact Us]


Copyright © 2015 Wintertree Software Inc.