Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memory leak VFP6.0 SP3 and SP5??
Message
De
03/08/2001 00:26:47
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
 
À
02/08/2001 23:31:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00539226
Message ID:
00539237
Vues:
24
>
** memory leak creating objects under other custom objects
>lnStart = VAL(SYS(1016))
>FOR lnCounter = 1 TO 5000
>*
>oa=CREATEOBJ("custom")
>oa.ADDOBJECT("crap", "Custom")
>oa.crap.ADDOBJECT("crap", "Custom")
>
><b>* FWIW adding this reduces the "leak" from 1208 bytes to 292 on my system:
>oa.crap.RemoveObject("crap")</b>
>
>oa.RemoveObject("crap")
>*
>ENDFOR
>lnEnd = VAL(SYS(1016))
>release all like oa
>
>? "Start = " + STR(lnStart) + " End = " + STR(lnEnd) + " Diff = " + STR(lnEnd - lnStart)
Actually, simply running the original test two or more times in a row produces a "leak" of 292.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform