Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COMCodebook V2 ADO memory leak
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COMCodebook
Title:
COMCodebook V2 ADO memory leak
Miscellaneous
Thread ID:
00742480
Message ID:
00742480
Views:
49
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
Next
Reply
Map
View

Click here to load this message in the networking platform