Board index » delphi » Memory Leaks w/ ADO
Brent William
![]() Delphi Developer |
Sat, 10 May 2003 03:00:00 GMT
Memory Leaks w/ ADO
Hi All,
I have an application that runs every half hour reading and updating databases. After about a day the server would slow down due to decreased memory. After several days of code revision I tracked it down to the act of simply connecting the ADOConnection object! I lose from 3-4M of memory for the connection and DO NOT get it back after the connection is closed or the connection object is freed. I cannot get the memory back until the application is shut down. You can easily reproduce this. 1. Create a new project and drop an ADOConnection object. Set it to connect ADOConnection1.Connected := true; <=== huge memory jump! 3. Next, fire up Taskmanager and check the memory. Then run your program. I also tried this connecting directly with a TADOQuery object and the same Does anyone have any experience with this? I've been researching but do not Thanks! |