add application version to the report
add application version to the report
hi
how can i add application version into the report?
thanks
how can i add application version into the report?
thanks
...except if you want to add additional informations!
Add the following line to a unit which will be loaded very first in your app:
Now, write the code for "ExceptionFilter" somewhere in this unit:
The code to retrieve the appversion should be included by yourself. If you don't know, just reply and I'll copy you the code snippet.
Add the following line to a unit which will be loaded very first in your app:
Code: Select all
initialization
RegisterExceptionHandler(ExceptionFilter, stDontSync);
Code: Select all
procedure ExceptionFilter(const exceptIntf : IMEException; var Handled : Boolean);
begin
BugReportHeader['application version'] := VarContainsAppVersion;
end;
i added what u said
and got the following when building the project:
access violation in:
madExcept_wizard.bpl
and:
[Error] Main.pas(3654): Undeclared identifier: 'IMEException'
[Error] Main.pas(3656): Undeclared identifier: 'BugReportHeader'
[Error] Main.pas(3664): Undeclared identifier: 'RegisterExceptionHandler'
[Error] Main.pas(3664): Not enough actual parameters
and got the following when building the project:
access violation in:
madExcept_wizard.bpl
and:
[Error] Main.pas(3654): Undeclared identifier: 'IMEException'
[Error] Main.pas(3656): Undeclared identifier: 'BugReportHeader'
[Error] Main.pas(3664): Undeclared identifier: 'RegisterExceptionHandler'
[Error] Main.pas(3664): Not enough actual parameters
My failure:
Plz install the latest beta of ME3!
Code: Select all
procedure ExceptionFilter(const exceptIntf : IMEException; var Handled : Boolean);
begin
with exceptIntf do
BugReportHeader['application version'] := VarContainsAppVersion;
end;