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 "Microsoft QuickBasic 1.00 Basic Language Reference." 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 "error 7" at the CHAIN statement. Compile all the modules with the "Create Program List File" option on and look in the listings under STORAGE in the "Symbol and Label Tables for: MAIN." 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