Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COMCodebook V2 ADO memory leak
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COMCodebook
Titre:
COMCodebook V2 ADO memory leak
Divers
Thread ID:
00742480
Message ID:
00742480
Vues:
50
After upgrading the framework to version 2, I started noticing a problem with my middle tier servers. The components were running out of memory in a matter of hours. It seemed that the COM+ service was not releasing memory for some reason.

I finally tracked to problem down to a line of code that was added to 2 methods in version 2.

This method is called from ExecuteQuery and Save.

This.CloseConnectionObject( toADO )

This was not called in version 1. It would appear that there is some sort of memory leak with toADO.oConnection.Close(). Does anyone know the behavior of this method, and why calling it wouldn't release the memory? It sounds like it sends the memory back to a pool instead of releasing it? Maybe VFP can't handle this way of reusing memory in the COM+ service?

Thanks,

Dan
MCSD
Dan Welter
MCSD
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform