Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Major VFP 5 + 6 COM memory leak!
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Major VFP 5 + 6 COM memory leak!
Divers
Thread ID:
00164134
Message ID:
00164134
Vues:
64
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform