Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A more definitive statement about MEMORY LEAKS within VF
Message
De
01/11/1998 17:42:30
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00153253
Message ID:
00153310
Vues:
20
>James,
>
>I think the observable fact that sys(1016) doesn't continuously increase by the size of the object as objects are created and destroyed is evidence enough the VFP is managing it's memory allocation pool and recovering memory as it needs it. For example the first cform sucks up 500k, when it's released sys(1016) doesn't show that 500k being deallocated, but when the second cform is created and sys(1016) doesn't show an increase memory use to 1m the first 500k must have been reused. Right?
>
>You may be able to use sysmeter and track memory allocation as far as the OS is concerned. Some of the other tools from VS may be handy, but this has never been enough of an issue for me to be worth the effort of tracking it farther.
>
>I may dedicate a test machine to run a loop for a few days and see how many billion object construct/destructs VFP can handle.

Dave, I've done something like this already in the course of testing the integration of one of our COM Servers with a VFP application; we ran over 67,000,000 consecutive CREATEOBJ() instantiations of our in-proc server without having VFP complain about memory loss. We did grow the swap file a bit (not surprising, since we use mapped file I/O for inter-instance communication) but VFP never complained about a lack of memory internally. We even tried multiple sessions of the test app running on the machine, each repeatedly creating and releasing the in-process server. VFP wasn't bleeding.

>
>>Excuse me for jumping in. I have been following this thread because I tried a test using a loop to see if repeatedly creating and destroying an object would eventually use up all the memory and lock up the machine. It does not, so obviously VFP is recapturing all of the memory used at some point.
>>
>>But if it does not recapture it all when an object is destroyed, when is it recaptured? VFP does not, like many other languages, have a function which forces a reorganization of memory, which tends to make me nervous as a rule although, admittedly, I have experienced no problems that I am aware of.
>>
>>regards,
>>
>>JME
>>
>>PS: If SYS(1016) is not reliable, what is? How would one go about getting an accurate read on the available memory?
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