Microsoft KB Archive/124325

{| = FIX: Insufficient Stack Space Error When Press ENTER then ESC =
 * width="100%"|

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.

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
 * }