This application has encountered an error ...

In a web app when there’s in error, a warning message with the error’s informations is helpful for the developer, but when the final user see the error’s message, he doesn’t understand it and he’s scared.

Is there a way to avoid the black window error message with button Send - Don’t send?

Nobody comments this post?

[quote=182431:@Pietro Beccegato]In a web app when there’s in error, a warning message with the error’s informations is helpful for the developer, but when the final user see the error’s message, he doesn’t understand it and he’s scared.

Is there a way to avoid the black window error message with button Send - Don’t send?[/quote]

You can use some JavaScript to suppress the message.

See http://www.javascripter.net/faq/suppress.htm

Or replace it :
http://www.javascriptkit.com/javatutors/error2.shtml
http://stackoverflow.com/questions/7120290/how-to-suppress-all-javascript-runtime-errors

That said, I am not so sure it is a good idea to do that in a Xojo app. Even if you suppress the black dialog, chances are it was triggered by a very bad bug which should be managed, instead of covered. Otherwise, if the visitor continues using the app while a happened, the result may be largely unpredictable.

You really want to do all you can in the App.UnhandledException to handle all errors.

Thank you for your answer.

I tried with the App.UnhandledException, but this doesn’t avoids the black dialog.