We are updating a Delphi Web Server to 64-bit and have come across an issue with how we use madExcept. We have a trigger in the application to manually generate a bug report that we can use to debug problems (e.g. a deadlocked thread), we trigger the bug report using code similar to this:
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
var
Report: string;
Exc: IMEException;
begin
Exc := NewException(etNormal);
Exc.ShowPleaseWaitBox := false;
Report := Exc.GetBugReport;
AutoSaveBugReport(Report); // save without UI
end;
Code: Select all
thread $3a94:
00000000 ???
Is there a better way to generate a bug report on demand, or is this a bug in the 64-bit support? Using the default behaviour of madExcept to catch exceptions that reach the global handler is working absolutely fine in 64-bit.
We are using Delphi Rio 10.3.3 and MadExcept 5.0 (2.8.8.0), although I did try the latest release and the same problem occurs.
Many thanks for your help,
Tony