Windows Service
Posted: Thu Feb 22, 2018 8:53 pm
I'm trying to get Madexcept to log exceptions in my service and I'm not getting any results.
I'm configuring the settings thus
and in my code I have the following
The exception gets sent to Codesite (and the table) but I assumed that the raise would allow Madexcept to catch it (and thus give me the call stack).
Any suggestions on what else I need to try ?
I'm configuring the settings thus
Code: Select all
MESettings.BugReportFile := Get_My_application_data_path + 'Email_service_madexcept.log';
MESettings.AutoSave := true;
MESettings.AutoContinue := true;
Code: Select all
except
on E: exception do
begin
codesite.send('Exception:', E.Message);
nxTableIMAPSettings.edit;
nxTableIMAPSettings.FieldByName('LastError').asString := formatdatetime('c', now) + ' ' + E.message;
nxTableIMAPSettings.post;
raise;
end;
end;
Any suggestions on what else I need to try ?