[Lazarus] SynEdit free my TSynCompletion when freed

Zaher Dirkey parmaja at gmail.com
Sat Mar 3 13:59:36 CET 2012


Hi i have global TSynCompletion for muliple synedit, i created it like this

  FCompletion := TSynCompletion.Create(nil);
  FCompletion.Width := 340;
  FCompletion.EndOfTokenChr := '{}()[].<>/\:!$&*+-=%';
  FCompletion.OnExecute := @OnExecuteCompletion;
  FCompletion.ShortCut := scCtrl + VK_SPACE;
  FCompletion.CaseSensitive := False;
  FCompletion.AddEditor(vSynEdit);

But when free the TSynEdit component it free that global FCompletion, how
can resolve it?

Thanks in advance

I am using last reversion of Lazarus, FPC 2.6

Best Regards
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120303/59a9424f/attachment-0002.html>


More information about the Lazarus mailing list