I have a big problem:
In our application I have a thread which makes a lot (and I mean a lot!) of selects. For each select statement a new TOracleQuery object is created then iterated until eof and then deleted. This procedure may occour some hunderts times. The same TOracleSession object is used all the time. It seems to me, that memory allocated by the query-object isn't freed in its destructor. I am using Borland C++ Builder 5 and I am creating a TOracleQuery-Object with new, and destroying it with delete. If I watch my application with the NT-Systemmonitor I see that every query-object (after Execute() ), increases drastically the virtualsize but it is not reduced
after calling the destructor. The displayed virtualsize value goes up to 2 GB (!) and then I get a out of memory error. :-( What is wrong? I there a memoryleak in the TOracleQuery or am I doing something completely wrong? I am not a windows expert - so I don't know the internals about memory mangement on this system - maybe that it has something to do with the thread the queries are running in?
--------------------------------------
m e c o m Andreas Wagner
Software Development
Mittelweg 143
20148 Hamburg wagner@mecom.de
Germany http://www.mecom.de
--------------------------------------
In our application I have a thread which makes a lot (and I mean a lot!) of selects. For each select statement a new TOracleQuery object is created then iterated until eof and then deleted. This procedure may occour some hunderts times. The same TOracleSession object is used all the time. It seems to me, that memory allocated by the query-object isn't freed in its destructor. I am using Borland C++ Builder 5 and I am creating a TOracleQuery-Object with new, and destroying it with delete. If I watch my application with the NT-Systemmonitor I see that every query-object (after Execute() ), increases drastically the virtualsize but it is not reduced
after calling the destructor. The displayed virtualsize value goes up to 2 GB (!) and then I get a out of memory error. :-( What is wrong? I there a memoryleak in the TOracleQuery or am I doing something completely wrong? I am not a windows expert - so I don't know the internals about memory mangement on this system - maybe that it has something to do with the thread the queries are running in?
--------------------------------------
m e c o m Andreas Wagner
Software Development
Mittelweg 143
20148 Hamburg wagner@mecom.de
Germany http://www.mecom.de
--------------------------------------