Microsoft KB Archive/34347

= MAC QB 1.00 README: If CHAIN &quot;Out of Memory,&quot; Change Stack =

Article ID: 34347

Article Last Modified on 11/21/2006



This article was previously published under Q34347



SUMMARY
The following information needs to be added to Page 540 in Appendix F of the &quot;Microsoft QuickBasic 1.00 Basic Language Reference.&quot; This information was taken from the README file from the release disk:

In programs with CHAINed modules, you may have to change the stack size for the compiled application if you get &quot;error 7&quot; at the CHAIN statement. Compile all the modules with the &quot;Create Program List File&quot; option on and look in the listings under STORAGE in the &quot;Symbol and Label Tables for: MAIN.&quot; Your main module needs to clear enough stack space for the largest STORAGE entry with code similar to this: '  As above, heap& is the heap space. stack& is the stack space heap&=100*1024&   'fill in the actual heap& you want to leave stack&=10000&     'use value from 'lst' file for the largest module IF SYSTEM(4) THEN 'compiled CLEAR,FRE(0)+FRE(-1)-heap&-stack&,stack& ELSE   'interpreted CLEAR,FRE(0)+FRE(-1)-heap& END IF

Additional query words: MQuickB readme docerr

Keywords: KB34347

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.