OpenTP1 Version 7 User's Guide

[Contents][Index][Back][Next]

6.6.2 Action to be taken in the event of an application exception

If an application exception occurs in a process running under OpenTP1 during online operation, the Windows debug handler is called and the debug program set in the registry is started. If the debug program to be started is an interactive program, such as VC++, the OpenTP1 system might be unable to restart (rerun) because the program resulting in the exception cannot be terminated. In Windows, if the system environment itself requires recovery processing, configure the system so that Dr. Watson is specified in the registry.

Note that you can set Dr. Watson only if you use Windows XP or earlier or Windows Server 2003 or earlier. If you use any other edition of Windows, use Windows Error Reporting (WER) to specify the settings so that a crush dump is acquired.

Organization of this subsection
(1) Specifying output environment settings for Dr. Watson
(2) Restoring debug program information from a backup

(1) Specifying output environment settings for Dr. Watson

For details about Dr. Watson, see Windows Help.

To specify environment settings to enable Dr. Watson:

  1. Make a registry backup.
    Start the registry editor (regedit.exe), open the \\HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AeDebug key, and then make a backup of the Debugger and Auto entry values. After that, terminate the registry editor.
  2. From the command prompt, execute the following command to enable the Dr. Watson setting:
    drwtsn32 -i
  3. Make note of all settings (for example, by writing down the settings displayed in the Dr. Watson dialog box).
  4. Specify options for the Dr. Watson settings, as necessary.
    Specify the following settings:
    • In Log File Path, specify a valid folder (you can also use the default setting).
    • In Crash Dump, specify a valid path (you can also use the default setting).
    • In Crash Dump Type, select Full (applicable only in Windows Server 2003).
    • Select the following items in the Options check boxes:
      Dump Symbol Table
      Dump All Thread Contexts
      Create Crash Dump File
    These option settings are not mandatory, but we recommend that you create a crash dump file because it is useful for troubleshooting in the event of an application exception.
  5. Click the OK button to exit Dr. Watson.

(2) Restoring debug program information from a backup

To restore the debug program information from a backup:

  1. Restore the debug program information from the backup registry.
    Start the registry editor (regedit.exe), open the \\HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AeDebug key, and then set the Debugger and Auto entries to the values used in the backup. After that, terminate the registry editor.
  2. To restore the option settings for Dr. Watson, specify the values used in the backup.
  3. Click the OK button to exit Dr. Watson.