Grog Friends and Affiliates > Army Editor Tech Support

Catching errors

(1/2) > >>

I know the editor is in beta version and final version will be much more "bullet proof" to errors but I think it would be could to catch errors to avoid the application crashing with only a message in the events log. Indeed, some beta testers might not be very good at Windows technical "subtleties" and providing a windows with the error message ready to be saved or copied might ease their work.

Andy ONeill:
Sorry for delay in response.
I've been focussed on something else the last few days.

Interesting point.
I'll give that some thought.

Since people seemed to be working with event logs OK my thinking was they know how to find errors so writing something dumps a file.... then they have to find that file.... a standard process is at least easily googled.

Paste the stack trace and error to the clipboard would probably be the best option.

I was thinking to a window displaying the error message and stack trace in a text box from where it can copied.

Andy ONeill:
I've implemented this.
I chose clipboard because the apps are fairly heavily multi threaded.
Showing a window is kind of risky.
UI controls ( and windows ) are thread sensitive.
You can't show a window from a non ui thread.
It can also be tricky to get a window to stick around when an app is in a closing down state due to an error.

What I wanted to definitely avoid is the possibility of an infinite loop of an error causing the error handler to show window... causing an error... which causes the error handler to show a window... infinite death spiral.

Is the new editor available on the download page (date on the page is still August 20, 2018) ?


[0] Message Index

[#] Next page

Go to full version