Add Application platform x32/x64 to the bug report

delphi package - automated exception handling
Post Reply
BenjyKid
Posts: 26
Joined: Tue Jan 03, 2006 4:06 pm

Add Application platform x32/x64 to the bug report

Post by BenjyKid »

Would it be possible to add the application platform (x32/x64) to the header of the bugreport.txt? It's sometimes a bit tricky to find out if the user is running the 32-bit or 64-bit executable of my software. There are a few hints in the bugreport, like the CPU registers. But it would be helpful to have this info clearly visible at the first look.
madshi
Site Admin
Posts: 10766
Joined: Sun Mar 21, 2004 5:25 pm

Re: Add Application platform x32/x64 to the bug report

Post by madshi »

You can very easily add it yourself:

Code: Select all

unit AddPlatformToBugReport;

interface

implementation

uses madExcept;

procedure AddPlatform(const exceptIntf: IMEException; var handled: boolean);
begin
  {$ifdef win64}
    exceptIntf.BugReportHeader['platform'] := 'x64';
  {$else}
    exceptIntf.BugReportHeader['platform'] := 'x32';
  {$endif}
end;

initialization
  RegisterExceptionHandler(AddPlatform, stDontSync);
end.
Post Reply