Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memory leak VFP6.0 SP3 and SP5??
Message
From
03/08/2001 00:26:47
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
 
To
02/08/2001 23:31:41
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00539226
Message ID:
00539237
Views:
31
>
** 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.
Previous
Reply
Map
View

Click here to load this message in the networking platform