Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 9 Collections and memory leaks
Message
From
05/04/2017 10:51:30
 
 
To
05/04/2017 09:54:47
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01649799
Message ID:
01649808
Views:
76
Hi Lutz

>Could you be more precise wath you do to create the leakage?

The application is relatively complex as I said.

I used collections in the way I do in python as general "containers for other kind of objects". As far as I can remember, the very leak was on parts of XML-objects parsed via COM and kept in memory. I kept the recursively described xml objects - of course since this non trivial app cannot do without - but just replaced their storage with an array-based one. When the array is dropped, the objects embedded in these arrays are fully dropped.

Beware of collections in no triival cases. They just do not release the memory. No need to try to associate tentative object dropping code in the destroy event à la myvar = .NULL. It won't work!

Daniel

PS:Tore is correct about the article by the way:) Rick - and Tore - are wonderful resources on VFP (and other things as well of course...)
Previous
Reply
Map
View

Click here to load this message in the networking platform