Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memory problem
Message
De
23/04/1999 17:55:26
 
 
À
23/04/1999 16:12:58
Roberto Sanhueza
Fundes Consultoria Internacional
Santiago, Chili
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00211704
Message ID:
00211773
Vues:
22
This message has been marked as the solution to the initial question of the thread.
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform