The information in this article applies to:
SYMPTOMSIn Windows versions 3.1 and 3.11, when a string that contains long, contiguous substrings of spaces is passed to DrawText, and the DT_WORDBREAK flag is specified, a stack fault may occur. CAUSEThe DT_WORDBREAK flag specifies that DrawText break the string between words. The method used by DrawText to determine where these breaks occur involves recursion. If the stack size is small enough and the number of spaces is large enough, the recursion causes a stack fault. RESOLUTION
There are two ways to work around this problem. One is to raise the stack
size of the application. This can be done by adding a STACKSIZE statement to the application's .DEF file.
STATUSThis behavior is by design. Additional query words: 3.10 3.11 16-bit recurse huge space overflow
Keywords : kbDSupport kbSDKWin16 |
Last Reviewed: June 28, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |