Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to track down memory leak(s)
Message
 
 
À
08/05/2009 14:20:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01398453
Message ID:
01524410
Vues:
118
>>>>Does the memory come back if you release and reinstanciate the VFP COM objects?
>>>
>>>I don't know and that would be extremely hard to test in this app. What I have been testing today (left running the last 3 hours to get some real data) is what happens if I run with those objects built in instead of COM.
>>
>>That should at least tell you the same thing - is the leak because of the COM interop or is it something else. Are you using GDI+ here? If so, it could be leaking memory there.
>
>Looks like it is the COM interop. When I run the whole thing from the Command Window without the COM objects registered, memory usage goes up much more slowly. So it looks like it's VFP, not me, and I'll need to use Bernard Bout's trick for releasing memory periodically. (http://www.foxite.com/faq/default.aspx?id=55)
>
>Off to play with that.
>
>Tamar

So,

What did you find out after implementing this trick?
BTW, adding call to this procedure from multithreaded VFP dll in each 50 iterations made no effect in our case.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform