[Lazarus] SynEdit free my TSynCompletion when freed

Zaher Dirkey parmaja at gmail.com
Sat Mar 3 19:28:46 CET 2012


On Sat, Mar 3, 2012 Martin <lazarus at mfriebe.de> wrote:
> Create the SynCompletion with an owner. Any owner will do.

Thank you Martin.

It is created it in global object i cant have an owner, but i resolved it
by inherit it with override this OwnedByEditor function

function TmneSynCompletion.OwnedByEditor: Boolean;
begin
  Result := False;
end;

>Actually, if you added as the synedit, then only the last should destroy it
Not sure in fact.

Best Regards

Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120303/b21a00cf/attachment-0003.html>


More information about the Lazarus mailing list