ODAC 5.70 for C++ Builder 6 and memory leak

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
caoctaviano
Posts: 1
Joined: Tue 23 Jun 2009 20:49

ODAC 5.70 for C++ Builder 6 and memory leak

Post by caoctaviano » Wed 24 Jun 2009 11:57

Hello everyone,

I work in a company which uses Borland C++ Builder 6, Oracle Client 9.2 and ODAC 5.70 to develop programs and I am facing an issue related to memory management.
When the application starts running, it uses 15.500 ( example ) of CPU memory ( I see it on Windows Tasks Manager screen ).
When the main process that uses databse connection and queries starts running, the memory usage raises to 16.800 ( example ).
When this process ends, the memory usage doesn't get back to 15.500, it stays about 15.900.
The application uses the components TOraSession and TOraQuery, which is created dinamically as follows:
TOraQuery *query = new TOraQuery(Application);
At the end of procedure, the below commands are used:
query->Close();
delete query;

Does anyone know how to solve this problem ?

Looking forward to news.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 25 Jun 2009 10:00

Maybe this is not a memory leak. Try to perfrom your operations in an infinite loop. If the memory usage will be increasing all the time, there is a memory leak than.

Post Reply