BUG: Placing Icons in Picture Object Causes Memory Leak (176765)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q176765 SYMPTOMS
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.
CAUSE
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.
RESOLUTION
Currently, there is no resolution, but following are two workarounds:
- Use a bitmap instead of an icon file to display an image in the Picture
property.
-or-
- Use an OLE container control that contains the Visual FoxPro HWND .ocx control to display the icon.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
REFERENCES
Visual FoxPro Help 3.0b, 5.0, 5.0a; search on: Visual FoxPro HWND Control
Modification Type: | Major | Last Reviewed: | 5/10/2003 |
---|
Keywords: | kbbug kbfix KB176765 |
---|
|