exilon / QuickLogger

Powerful and flexible library for logging on files, console, memory, email, rest, eventlog, syslog, slack, telegram, redis, logstash, elasticsearch, influxdb, graylog, Sentry, Twilio, ide debug messages and throw events for Delphi/Firemonkey/freepascal/.NET (Windows/Linux/OSX/IOS/Android).
Apache License 2.0
375 stars 85 forks source link

Runtime Error 217 when using GlobalLogEventLogProvider in VCL #49

Closed pmeder closed 3 years ago

pmeder commented 3 years ago

Hi,

first of all, thanks for that great logging Tool. I have tried to use that logging tool inside an VCL Applikation (64bit). After adding GlobalLogEventLogProvider to the Logger and Close the Applikation I get error Message Runtime Error 217.

I can't really get why this happen. Here is my demo App for reproduction.

LoggerDemo.zip

Delphi Version is Rad Studio 10.4.1.

I also testet it by adding the EventLog Provider to FMX Example. There was no Message after closing but when I trigger to Log in ERROR mode, I also get a follow message inside the Windows Log. EventID 1000 Source Application Error. Seams something crashes the EventLogLogger.

Thats the Code I added in the FMX Example:

  GlobalLogEventLogProvider.LogLevel := LOG_ALL;
  GlobalLogEventLogProvider.Enabled  := True;
  GlobalLogEventLogProvider.Source   := 'Multilogger';
  Logger.Providers.Add(GlobalLogEventLogProvider);

Thanks.

pmeder commented 3 years ago

Okay, new thing. Is it true that the GIT-HUB repo divers from the Version in the Rad Studio GetIt Manger? In uses for Eventlog I see you fixed a Problem with pointerReference. That Problem is also one of mine. When I look in the pas File I get from GetIt, then that Failure still exists. If that's true, please make some Note inside READ.ME, that would help not reconsider known bugs.

Best regards.

pmeder commented 3 years ago

Okay, new thing. Is it true that the GIT-HUB repo divers from the Version in the Rad Studio GetIt Manger? In uses for Eventlog I she you fixed a Problem with pointerReference. That Problem is also one of mine. When I look in the pas File I get from GetIt, then that Failure still exists. If that's true, please make some Note inside READ.ME, that would help not reconsider known bugs.

Best regards.

pmeder commented 3 years ago

After using the Files from Git Repo NOT from Get-It, every Failure is gone. Tanks to Emba for 1 Day of useless Research...