Page 1 of 1

ODAC 5.70 for C++ Builder 6 and memory leak

Posted: Wed 24 Jun 2009 11:57
by caoctaviano
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.

Posted: Thu 25 Jun 2009 10:00
by Plash
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.