Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Not Enough Memory
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00061619
Message ID:
00061745
Vues:
38
Thanks for all of the replies. I was hoping for something more encouraging. It looks like I need to have the app shut down at some time interval. But first, I think that I will remove all OLEs object, in hopes it will slow down the out of memory problem.

Thanks again for the feedback.

Mike


>Mike,
>
>My guess is that you're running into the problem of "memory fragmentation", which is a general phenomenon that occurs in almost any dynamic memory management scheme. Basically, as blocks of memory are allocated and freed randomly, the memory pool gradually degrades into a state where there are a lot of tiny free blocks randomly interspersed with allocated blocks. Even though there may be enough total free space, there isn't enough contiguous free space to satisfy an allocation. This is really like the inevitable increase in a system's entropy. What can aggravate this further is the slightest failure to totally release every allocated block, if there is any defective logic that would normally be minor, but not in the kind of scenario you describe.
>
>I suggest that you provide a mechanism for having the application periodically shut itself down and restart itself, at some tunable interval of time, or maybe subject to some call that checks on the largest available contiguous memory block size. I'm not an expert on the various specific layers of memory management that are going on (after all FoxPro allows us not to think about this), but it's conceivable that you may even need to reboot the machine periodically for similar reasons.
>
>Good luck,
>
>Mike Asherman
>
>>I have developed an application (exe) which requires to run all of the time on the lan network. The app runs ok for 12 to 20 hours but then start losing images within the form. Then when you try to perform a task you get an error stating "Not enough Memory to Run this Program". I have checked my code and release all memory variables but still have the same problem. Does anyone know why this is happenning ? It is a Win 95 problem? It's looks like the program eats memory until after awhile there is no more left. The pc has 32 meg RAM and 2 gig harddrive memory.
>>
>>Any ideas would be greatly appreciated,
>>
>>
>>Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform