No LogFile Created

contains all delphi packages mentioned below
Post Reply
KevinX3
Posts: 5
Joined: Fri Jan 19, 2018 2:37 am

No LogFile Created

Post by KevinX3 »

Apologies for the Newbie question.

I have searched the forum and cannot find an answer.

RS XE7 with MadExcept Installed and enabled

I have the path to the logfile set to C:\EMP Logs\BugReport.txt. No matter what, I never get a bug report created. I have tried leaving the absolute path and just putting in BugReport.txt, but no bug report is created in AppData.

Any ideas what I might be doing wrong??

Thanks,
Kevin
madshi
Site Admin
Posts: 10528
Joined: Sun Mar 21, 2004 5:25 pm

Re: No LogFile Created

Post by madshi »

Do you have "automatically save bug report" enabled in the madExcept settings? Does your EXE have write access to "C:\EMP Logs\BugReport.txt"?
KevinX3
Posts: 5
Joined: Fri Jan 19, 2018 2:37 am

Re: No LogFile Created

Post by KevinX3 »

Hi,
Do you have "automatically save bug report" enabled in the madExcept settings?
Yes
Image
Does your EXE have write access to "C:\EMP Logs\BugReport.txt"?
Yes, other logfile (from LoggerPro for example) happily write to that folder. I'm sure it's something simple, but I don't know what. I have also tried setting the logfile folder to {App Directory}\Logs (I do that for other logfiles as well), but that also did not work:

Code: Select all

      // LogFile setup
      sLogFolder := IncludeTrailingPathDelimiter(ExtractFilePath(ParamStr(0))) + 'logs';
      if not(DirectoryExists(sLogFolder)) then
        ForceDirectories(sLogFolder);
      sProcessID := inttostr(GetCurrentProcessId);
      sLogFileName := 'MadExcept_DbXConnect_' + FormatDateTime('YYYYMMDD',now) + '_' + sProcessID + '.log';
      MESettings.BugReportFile := sLogFolder + sLogFileName;
madshi
Site Admin
Posts: 10528
Joined: Sun Mar 21, 2004 5:25 pm

Re: No LogFile Created

Post by madshi »

Can you reproduce this problem in a simple brand new almost empty test project? If so, can you make that test project available to me?
Post Reply