"Error R6000: Stack Overflow" in Non-Stand-Alone Program (33707)






This article was previously published under Q33707

SYMPTOMS

When certain programs that are heavily laden with $INCLUDE statements are compiled in BC.EXE without the /O option (not stand-alone), the following run-time error can repeatedly display on the screen for about 20 seconds, and then the computer can hang:
R6000:Stack Overflow

WORKAROUND

The current workaround is to reduce the number of $INCLUDE statements.

With QuickBasic Version 4.00b and Basic Compiler 6.00 and 6.00b, the problem usually does not occur if you compile with the BC /O (stand-alone) option. However, the error message occurs for both stand-alone and non-stand-alone programs with QuickBasic Version 4.50.

This problem does not occur in QuickBasic Versions 4.00 or earlier.

STATUS

Microsoft has confirmed this to be a bug in Microsoft QuickBasic Versions 4.00b and 4.50, and in the Microsoft Basic Compiler Versions 6.00 and 6.00b for MS-DOS and MS OS/2 (buglist6.00, buglist6.00b). We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Modification Type: Minor Last Reviewed: 1/8/2003
Keywords: KB33707