Microsoft KB Archive/81190

= Microsoft Knowledge Base =

64K Limit for Test Script Source Files and Compiled Pseudocode
Last reviewed: October 19, 1994

Article ID: Q81190

The information in this article applies to:

- Microsoft Test for Windows, version 1.0

SUMMARY
In Microsoft Test for Windows, there is a maximum size limit of 64K (one segment) for a given source file. The same maximum size limit (64K) applies to the threaded pseudocode that is generated when a Microsoft Test script is executed.

This design feature applies to Microsoft Test for Windows version 1.0.

MORE INFORMATION
Note that a Test script can consist of more than one source file by including (with the '$Include metacommand) one file into another. Therefore, if you run into the 64K limit for a Microsoft Test source file, you can separate it into multiple files and use the '$Include metacommand to include them into one main source file.

If you run into the 64K limit for generated pseudocode, you will need to reduce the total size of your whole script. Breaking it up will not help, because all included files are parsed into one large pseudocode program for execution. If you are using '$Include to add an additional source file, make sure that you have used conditional compilation metacommands ('$Define, '$Ifdef) to make sure you have included only code necessary for the current script. This will help reduce the size of the pseudocode that is generated.