Article ID: 176765 - View products that this article applies to.
This article was previously published under Q176765
This article has been archived. It is offered "as is" and will no longer be updated.
A program that loads a series of icon files into the Picture property of a Visual FoxPro image object causes a memory leak in Visual FoxPro 3.0b, 5.0x, and 6.0. Eventually, the operating system becomes unstable and the computer locks.
Loading the icon files may create a leak in process memory. As the program runs, increasing amounts of RAM are consumed. When the program starts using virtual memory, performance suffers and the computer may lock.
Currently, there is no resolution, but following are two workarounds:
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
Steps to Reproduce BehaviorWARNING: Running the code below causes a low memory situation on the computer. This condition may cause the operating system to become unstable. Close all open applications and save your data before using this procedure. In Microsoft Windows 95 and Microsoft Windows NT, press the CTRL+ALT+DEL keys simultaneously to invoke the Close Dialog window or the Task Manager, respectively.
Create and run a program that contains the following code:
The first indication of a memory problem appears when the icons no longer appear in the individual image objects. The number of iterations before this symptom appears depends on the amount of physical RAM installed on the computer. Once the memory leak consumes all the physical RAM, Visual FoxPro begins using virtual memory. At this point, performance suffers greatly and the operating system may lock.
Visual FoxPro Help 3.0b, 5.0, 5.0a; search on: Visual FoxPro HWND Control
Article ID: 176765 - Last Review: February 28, 2014 - Revision: 2.1
Contact us for more help
Connect with Answer Desk for expert help.