memory leak with myquery.execute
Posted: Fri 13 Jan 2012 17:15
Hi
It seems that there is a memory leak of 54 bytes with myquery.execute (using an update statement).
I am using mdac 610 with delphi 2010:
myquery := TMyQuery.Create(nil);
myconnection:=tmyconnection.Create(nil);
myconnection.LoginPrompt := false;
myconnection.Server := 'localhost';
myconnection.Port := 3306;
myconnection.Username := 'username';
myconnection.Password := 'password';
myconnection.Database := 'test';
myconnection.Connect;
myquery.Connection := myconnection;
myquery.sql.Add('update company set excluded=112 where id=1');
myquery.execute;
myquery.Free;
myconnection.Free;
Can you help please?
thanks
philippe
It seems that there is a memory leak of 54 bytes with myquery.execute (using an update statement).
I am using mdac 610 with delphi 2010:
myquery := TMyQuery.Create(nil);
myconnection:=tmyconnection.Create(nil);
myconnection.LoginPrompt := false;
myconnection.Server := 'localhost';
myconnection.Port := 3306;
myconnection.Username := 'username';
myconnection.Password := 'password';
myconnection.Database := 'test';
myconnection.Connect;
myquery.Connection := myconnection;
myquery.sql.Add('update company set excluded=112 where id=1');
myquery.execute;
myquery.Free;
myconnection.Free;
Can you help please?
thanks
philippe