I'm using DragDropSettings.OleDropTarget in a couple of TAdvStringGrid components.
There is a memory leak reported ( "AvdGrid.TGridDopTarget" ) for each one if I set the OleDropTarget property at design time.
If I set it at run time and clear it in the form's destroy event there is no leak.
I cannot reproduce this with the latest version.
Test code applied to a default grid:
procedure TForm1.FormCreate(Sender: TObject);
ReportMemoryLeaksOnShutdown := true;
AdvStringGrid1.DragDropSettings.OleDropTarget := true;
AdvStringGrid1.DragDropSettings.OleDropSource := true;
performed drag from and drag to grid and no memory leak is shown when closing.
On a fresh project I don't see the leak either. In my real application, the form is created at run time and parented to a docking panel. Maybe that has something to do with it?
Try to enable drag & drop only AFTER you set the final grid parent.
Yes, If I set the property in the form's OnCreate event, there is no memory leak.