PDA

View Full Version : Is it possible to hide exception dialog, but still send to web?


NathanProbst
08-Apr-2006, 09:50 PM
Hi! I'm evaluating EurekaLog...

I'd like to be able to decide in code if the exception dialog is shown. I think this works (from the help):


// Show exception dialog?
procedure MyNotify(ExcRecord: TEurekaExceptionRecord; var Handled: Boolean);
begin
with ExcRecord.CurrentModuleOptions do
begin
if (MessageBox(0, 'Do you want to show error details?', 'Question',
MB_YESNO or MB_ICONQUESTION or MB_TASKMODAL) = ID_YES) then
ExceptionDialogOptions := (ExceptionDialogOptions + [edoShowExceptionDialog])
else
ExceptionDialogOptions := (ExceptionDialogOptions - [edoShowExceptionDialog]);
end;
end;


What I'm not sure about is how to send the error report to the web, even when I choose not to display it to the user?

Any ideas?

Thanks,
Nathan Probst

admin
10-Apr-2006, 02:39 PM
Hi,

NathanProbst wrote:
> Hi! I'm evaluating EurekaLog...
>
> I'd like to be able to decide in code if the exception dialog is
> shown. I think this works (from the help):
>
>
>
>
> // Show exception dialog?
> procedure MyNotify(ExcRecord: TEurekaExceptionRecord; var Handled: Boolean);
> begin
> with ExcRecord.CurrentModuleOptions do
> begin
> if (MessageBox(0, 'Do you want to show error details?', 'Question',
> MB_YESNO or MB_ICONQUESTION or MB_TASKMODAL) = ID_YES) then
> ExceptionDialogOptions := (ExceptionDialogOptions + [edoShowExceptionDialog])
> else
> ExceptionDialogOptions := (ExceptionDialogOptions - [edoShowExceptionDialog]);
> end;
> end;
>
>
>
>
> What I'm not sure about is how to send the error report to the web,
> even when I choose not to display it to the user?
>
> Any ideas?
>
> Thanks,
> Nathan Probst

To send the error via Web you must only set the "Web Send Options".
You can do this via IDE ("Project/EurekaLog Options/Web Send Options"
menu) or at run-time (using the "CurrentModuleOptions.Web????" properties".

The Web sending is unrelated to the Dialog showing, it is sending
independently alto if its dialog it isn't showed.

--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!