Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to track down memory leak(s)
Message
De
27/09/2011 10:04:07
 
 
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:
01524852
Vues:
94
>So, the problem was indeed there. I guess the only change that needs to be done is to add this line to the main program and all will work fine. Of course, I made lots of other little tweaks which my colleagues seem to want to not implement for now.

If you look at that statement, it becomes clear that you and your colleagues don't follow
DRY hard enough. Such a line should *never* be needed to be added in the main program:
It should be in the setup of the class code of the logger. Or at least in the function opening the file.

Also if you had class based logging, any tweak done in the base class would not need to be implemented again ;-)
So that anti-pattern incurred the cost of you trying to find the reason for the perf loss and did not get the benefit
of streamlined routines except for the specific case.

In my code there are a couple of different loggers working - sometimes adding info for
memory state,
tabel size/usage
disk info
stack level,
specififc time incurred (SQL)
time incurred vs. _tally

and other things.

regards

thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform