Exception Management (Crashes)
Exception management in S/T V11
In Stat/Transfer v.11 we support exception handling on all platforms but we are able to generate (on a request) a debug report on WIN32 only.
General exception handler displays the following message on all platforms:
Please note that the following screenshots refer to “Stat/Transfer 12”, in fact in case of Stat/Transfer 11, it will be 11 not 12.
On WIN32 we can enable deb. report generation by creating “debug” directory in the same folder where st32w.exe is located (the whole idea is not very good in case of installing S/T V.11 to “Program Files” on Vista +). Example of a debug report:
The aforementioned directory (StatTransfer12_dbgrpt-xxxx) will contain a small xml file with information about occurred exception and the address of the exception. If the user put a note to the note field, it will be stored as a separate file.
I would suggest that the user should compress the whole directory and send it to us for further examination.
Exception management in S/T V12
In Stat/Transfer v.12 we support exception handling on all platforms but we are able to generate a debug report on WIN32 only (on a request (by setting an env. var) we can display the generic message instead of generation debug report on WIN32 ).
General exception handler displays the following message on all platforms:
On WIN32 by default we always generate deb. report. Contrary to S/T V.11 it became the default mode for WIN32. If one wants to disable deb. rep generation and then he should set “ST_DBGRPT_OFF" env. variable, for example:
ST_DBGRPT_OFF=1
Examples of a standard debug report:
The aforementioned directory (StatTransfer12_dbgrpt-xxxx) will contain a small xml file with information about occurred exception and the address of the exception. If the user put a note to the note field, it will be stored as a separate file.
I would suggest that the user should compress the whole directory and send it to us for further examination.
Disabling exception management in S/T V12 and handling the situation using other means.
There might be situations when we want to disable exception management to let such programs as Dr. Watson to catch the exception in our code and generate the full size dump that we could analyze later.
To disable S/T V12 exception handler the user has to set the following env. variable:
ST_NOEH=1
In case of exception it will become available for other programs and S/T will crash with the following error message:
The user can press the link “click here” and another window “Stat/Transfer 12 GUI” will be opened:
Clicking again on “click here” opens the last window:
Where “Address” (the 3rd line) is the address we need to figure out where crash has occurred in our code. The user can also send us the whole file mentioned in the error report (C:\Temp\f20e_appcompat.txt)
Another, very powerful approach would be to setup Dr. Watson to generate the log and full dump. To do that the user will need to make sure that Dr.Watson is enabled on his computer as described in the following article:
http://serato.com/scratchlive/support/1925/how-to-enable-dr-watson
We would need the the user to create NT4 compatible full dump, with the options set on the picture in the article.
Additional info about Dr. Watson can be found here:
http://support.microsoft.com/kb/188296
Some important things to remember:
a) When one adds a new env. variable or edit/delete existing one he must restart S/T GUI. If he is launching S/T GUI from a different program (a file manager, Windows Explorer does not count) he must restart the host program as well since otherwise the S/T GUI will inherit the previously allocated environment ;
b) In case of command processor the user should use the methods described in chapter “Disabling exception management in S/T V12 and handling the situation using other means” since we don’t provide the built-in exception handling;
c) How to set env. variables in WINXP / WIN 7:
http://support.microsoft.com/kb/310519
http://www.itechtalk.com/thread3595.html