10-07-2021, 06:54 PM
You probably missed the end of my previous post:
Your solutions would probably work, but I did it this way, and is works fine now:
var
DebugLogEventHandlers: TDebugLogEventHandlers;
IdHTTPServer1.OnCommandGet := @DebugLogEventHandlers.IdHTTPServer1CommandGet;
It is just that Lazarus does not like a direct call to TDebugLogEventHandlers or @TDebugLogEventHandlers
Thanks Remy
Your solutions would probably work, but I did it this way, and is works fine now:
var
DebugLogEventHandlers: TDebugLogEventHandlers;
IdHTTPServer1.OnCommandGet := @DebugLogEventHandlers.IdHTTPServer1CommandGet;
It is just that Lazarus does not like a direct call to TDebugLogEventHandlers or @TDebugLogEventHandlers
Thanks Remy