Menu

#4 Free Pascal patch for Log4D.pas

open
None
5
2014-05-17
2014-05-17
No

In Free Pascal applications Log4D causes a sigsegv (access violation) error at initialization. This is caused in TLogLog.Create and can be fixed by using a temporary variable:

constructor TLogLog.Create;
var
  TmpAppender: ILogAppender;
begin
  inherited Create('');

  TmpAppender := TLogODSAppender.Create('');
  AddAppender(TmpAppender);
  InternalDebugging := False;
  Level             := Log4D.Debug;
end;

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.