Sentry Spelling Checker Engine - Support
You are here: Home > Support > Sentry Spelling Checker Engine > "Error replacing word" error message
Product: Sentry Spelling Checker Engine Windows SDK
Problem: When checking text using SSCE_CheckCtrlDlg or SSCE_CheckBlockDlg with the showContext parameter set to TRUE, the message "Error replacing word (probably out of space)" appears when the user clicks the Change button in the spelling dialog.
Solution: Standard text controls in Windows can hold about 32K of text. If this limit is reached, any attempt to add characters to the control will fail. The error message is displayed if an attempt to add characters to a text control fails. When the showContext parameter in SSCE_CheckBlockDlg is set to TRUE, the spelling dialog displays the text being checked in a text control which has the same 32K limit.
If you are using SSCE_CheckCtrlDlg, the solution is to use a rich-text control instead of a text control. Rich-text controls have a much larger text limit. If you are using SSCE_CheckBlockDlg, break the text into smaller chunks that will fit into the 32K limit with room for expansion.
Copyright © 2015 Wintertree Software Inc.