PRB: Test "Parser Out of Memory" ErrorLast reviewed: April 5, 1995Article ID: Q87455 |
The information in this article applies to:
- Microsoft Test for Windows, version 1.0
SYMPTOMSA "Parser out of memory" error occurs when running a Test for Windows, version 1.0 script file under Test Driver.
CAUSEThe "Parser out of memory" error in Test means the Test Driver pseudocode engine has exceeded its memory limit on an object. Three types of objects can cause this error (listed in descending order of probability):
RESOLUTIONReduce the size of the object causing the error. Resolution depends on the object causing the error. Various methods of working around the error are shown below.
MORE INFORMATIONThe "parser" is the part of Test Driver that translates the script code entered by the programmer into machine-language pseudocode and executes it.
Code Segment MemoryThe most common cause of the "Parser out of memory" error message is that the script code is larger than the 64K code segment. (One 64K code segment is allotted for each script file.) Solve this problem by dividing your large code script into two or more smaller scripts that are called sequentially from a "driver" script. (For an example of this technique, see the TSTSUITE application in MSTEST\SAMPLES\TSTSUITE. DRIVER.MST is the driver script that calls various other scripts from itself.) Another technique, which can be used along with the first to shrink code space, is to create a "wrapper" routine. In this case, a wrapper routine is a SUB or FUNCTION that makes only one call to DLLs with large numbers of parameters. Without a wrapper routine, numerous direct DLL calls are made, generating more internal code, especially with DLLs with large numbers of parameters.
Data Segment MemoryThe second most probable cause of the "Parser out of memory" error is a data segment memory overflow. If your script has many variables (particularly arrays) and many quoted literal strings (particularly long strings), you probably have run out of data segment memory. If you suspect this has happened, you can:
|
Additional reference words: 1.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |