Memory leak logon/logoff

weloby

Member
Hi,

I have a simple Delphi application with one OraSession component. In a timer I connect and immediately disconnect from a database. The timer ist executed every second. After a while a lot of memory is consumed as shown in the task manager.

I am using Delphi 6.

Timer code is like this:
---
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if not OracleSession1.Connected then
OracleSession1.LogOn;

if OracleSession1.Connected then
OracleSession1.LogOff;
end;
---

Thanks for your help!
Regards,
Christian
 
Back
Top