FIX: Insufficient Stack Space Error When Press ENTER then ESC

Last reviewed: September 22, 1997
Article ID: Q124325
2.60 WINDOWS kbusage kbfixlist kbbuglist kberrmsg

The information in this article applies to:

  • Microsoft FoxPro for Windows, version 2.6

SYMPTOMS

When using the code example below, FoxPro version 2.6 for Windows produces an 'Insufficient Stack Space' error after you press the ENTER and ESC keys approximately six times (ENTER then ESC) in rapid succession.

STATUS

Microsoft has confirmed this to be a problem in Microsoft FoxPro version 2.6 for Windows. This problem was corrected in the Microsoft FoxPro version 2.6a for Windows release dated August 2, 1994.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create a program file called INSUFF.PRG containing this code:

    SET COMPATIBLE ON CLEAR DEFINE MENU xmain DEFINE PAD p1 OF xmain PROMPT "pad1" COLOR SCHEME 3 ON PAD p1 OF xmain ACTIVATE POPUP pad1

    DEFINE POPUP pad1 MARGIN RELATIVE SHADOW COLOR SCHEME 4 DEFINE BAR 1 OF pad1 PROMPT "bar1 p1" DEFINE BAR 2 OF pad1 PROMPT "bar2 p1" DEFINE BAR 3 OF pad1 PROMPT "bar3 p1"

    ON SELECTION BAR 1 OF pad1 do xxx ON SELECTION BAR 2 OF pad1 do xxx ON SELECTION BAR 3 OF pad1 do xxx ON EXIT BAR 1 OF pad1 ? "ON EXIT BAR 1 pad1" ACTIVATE MENU xmain

    PROCEDURE xxx

          FOR i = 1 TO 100
    
             ? i
          ENDFOR
       RETURN
    
    

  2. Execute this command:

    DO INSUFF.PRG

  3. Once the menu appears, press the ENTER key and then the ESC key. Press this key sequence repeatedly (six or more times) very quickly.

The Cancel, Suspend, Ignore dialog appears a few times. Then the "Insufficient stack space" error appears.


Additional reference words: FoxWin 2.60 buglist2.60 fixlist2.60a memory
menu bar escape enter errmsg err msg
KBCategory: kbenv kbusage kbfixlist kbbuglist kberrmsg
KBSubcategory: FxenvMemory
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.