>Hello
>I have a problem In a VFP 5.0 :
>i have one method, which draw lines in a container,
>when i have around 5.500 lines ,an error occur and i get the following message :
>
>There is no enough memory to ...(Error 43)
>
>My pc has 32 MB ram and 1GB of free disk space. I test too with pc with 64 MB ram and 4 GB of hard disk.
>
>sys(1001) report 125 MB total vfp memory
>when error occur.. sys(1016) report only 15 mb used..
>
>why the vfp memory manager report this error ?
>
In all probability, you're exhausting one of the Windows resource heaps, most likely the GDI heap. This heap has a maximum size of 64K, regardless of the total memory on the system under Win9x. The GDI heap is used to hold icon and font information, in addition to serving as the pool of memory for screen objects.
There are several things that may reduce the use of the GDI, but probably not by a large amount. Reducing the number of installed fonts on the system, the number of icons on the desktop, and the color depth, will all reduce the amount of memory consumed on the GDI heap before VFP (or any other application) gets its grubby paws into the mix. A lower resolution mode will also reduce the amount of space used by virtual consoles.
If you really have a need for a tremendous number of graphical objects(remember than each line is an object), then NT will be a better platform, since the GDI isn't bounded by the old Win16 heap size limits.
>Thanx.