FIX: RESTORE SCREEN Causes Memory Leak in Visual FoxPro 5.0 (174244)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
This article was previously published under Q174244 SYMPTOMS
Repeatedly calling the SAVE SCREEN TO <memvar> and RESTORE SCREEN FROM
<memvar> commands causes the operating system to run low on memory.
In Windows NT 4.0, the following message appears in a window titled "System
Process-Out of Virtual Memory":
Your system is running low on virtual memory. Please close some
applications. You can then start the System option in the Control Panel
and choose the Virtual Memory button to create as additional paging file
or to increase the size of your current paging file.
After clicking OK, the following error message appears:
Program Error
There is not enough memory to complete this operation.
In Windows 95, the following error appears:
Program Error
There is not enough memory to complete this operation.
RESOLUTION
As a workaround, place the following two commands before the RESTORE SCREEN
FROM command in the code example below:
ACTIVATE SCREEN
CLEAR
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in Visual Studio
97 Service Pack 3.
For more information, please see the following article in the Microsoft
Knowledge Base:
170365 INFO: Visual Studio 97 Service Packs - What, Where, and Why
Modification Type: | Major | Last Reviewed: | 8/12/1999 |
---|
Keywords: | kbbug kberrmsg kbVS97sp2fix KB174244 |
---|
|