So I'm trying to get major application crashes to be automatically added to a database for review. (I've learned that users generally don't report them, and when they do they usually don't give much useful information)
I read that the errorDialog is the way to custom handle application crashes. However it's tricky to test, since when working in livecode crashes are handled differently.
On a standalone program (Windows, Livecode 8.1.2) I can get the answer "test" but not tError (see code below). No second dialog box pops up at all, surprisingly.
Do I have to setup stack "revErrorDisplay" myself? Are my variables somehow bad? I thought I believe I duly copied what the dictionary said...
Thanks in advance
Code: Select all
on errorDialog pExecutionError, parseError
answer "test"
put line (item 1 of line 1 of pExecutionError) of the cErrorsList of card 1 of stack "revErrorDisplay" into tDescription
put pExecutionError & return & tDescription & return & parseError into tError
answer tError
end errorDialog