Board index » delphi » Memory leak with ADO dataset and append/post

Memory leak with ADO dataset and append/post

Hi,

I have a problem when doing the following operation
(just an example) :

ADODataset.Append;
ADODataset.FieldByName('Field1').AsDateTime := Now;
ADODataset.FieldByName('Field1').AsInteger := 100;
ADODataset.FieldByName('Field1').AsFloat := 100.4;
ADODataset.Post;

The method above creates a 4K memory leak every time it
is run, and since I have to execute this at least every
second, this is worrying me. I have tried different
kinds of cursors, locking etc., but it seems impossible
to get rid of this memory leak. Does anybody have an
explanation or a fix?
I have searched on google, but could not find any
satisfactory answer. I use Delphi5.

Thanks in advance.

Jr?me

 

Re:Memory leak with ADO dataset and append/post


I forgot to mention that I use an access 2000 database
(JET 4.0).

Other Threads