Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Major VFP 5 + 6 COM memory leak!
Message
From
04/12/1998 12:09:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Major VFP 5 + 6 COM memory leak!
Miscellaneous
Thread ID:
00164134
Message ID:
00164134
Views:
60
Try this one out. It contains the COM object and test code. Compile the PRG code in a VFP project. Call the project Rettest

I have found this really nasty memory leak when returning a value from a VFP COM object. Every call to the object causes memory to leak!
The size of the link varies between VFP 5.0 and 6.0. Under 5.0 it is about 100K per call to the COM object, under 6.0 its about 10K.

Microsoft's response is that it the bug exists and they will NOT fix it in VFP 5.0. "MAYBE" it will be fixed in 6.0! I thought COM was the future. Microsoft is not taking it to seriously.

Let me know what you find out.

Thanks

*************** RETTEST.PRG
* Create a project called rettest
* Use this PRG file to test also
* Used NT Task manager to watch memory
*
public mobj, idx

mobj = CreateObject( "Rettest.ObjectTest" )

for idx = 1 to 10
mobj.MyGetObject()
Wait "Hit a key"
next idx

mobj = null


Define Class ObjectTest as custom OLEPUBLIC

Function MyGetObject()

return Replicate( "D", 65000 )

endfunc

enddefine
Next
Reply
Map
View

Click here to load this message in the networking platform