Random processor exception errors.
Setting Up Dr. Watson for MicroStation V8/J/SE and MicroStation 95 on Windows 2000/NT
These instructions should be followed by the User for random processor exception errors.
Random exception errors are usually memory faults somewhere in the Operating Systemand/or inside the MicroStation source. The Dr. Watson debug log will help developmentdetermine where the exception is occurring.
These instructions must be followed for a valid Dr. Watson log.
For NT:1. Go to the Administrative Tools group and run the Event Viewer.2. In the Event Viewer select the LOG pull down menu.3. Select "LOG SETTINGS" and set the Maximum Log Size to 1024.4. Check off "overwrite events as needed".For Windows 20005. Go to the Administrative Tools group and run the Event Viewer.6. In the Event Viewer, make sure no specific events are selected, thengo to theACTION pull down menu and choose PROPERTIES.7.Set the Maximum Log Size to 1024.8.Check off "overwrite events as needed".9.Go to the %WINDIR%/ directory and look for a file called DRWTSN32.LOG,if exist, delete this file.10.Go to the %WINDIR%/system32/ directory and run the DRWTSN32.EXE.
Make the following changes to the Dr. Watson Interface:
1. Set the Number of Instructions to 50.2. Set the Number of Errors to Save to 100.3. Under the Options, toggle on Dump Symbol Table, Dump All ThreadCounts, and Append to Existing Log File.4. Turn on "Create Crash Dump File". The name of the file is usually"user.dmp"and the path to it is usually the same as the path to the "drwtsn32.log"."User.dmp" files are typically large but compressible.
5.Turn off the remaining options.6. Hit the CLEAR button. (Then you can close Dr Watson).7. Go to a DOS Command Prompt. Set the following variable: type in, SET MS_TRAP=NONE.
From a DOS Command Prompt:MicroStation V8 directory, i.e. C:\Programfiles\Bentley\Program\MicroStation\..) start MicroStation by running the following command: type in, START USTATION.EXEMicroStation J directory, i.e. C:\Bentley\Program\MicroStation\..) startMicroStation by running the following command: type in, START USTATION.EXEMicroStation 95/SE directory, i.e. C:\win32app\ustation\..) startMicroStation by running the following command: type in, START USTATION.EXENote: Upon starting MicroStation you should see a MicroStation Text Window with themessage MS_TRAP set to NONE.In MicroStation reproduce the application exception error. After the error occurs checkthe default Windows directory, %WINDIR%, for a DRWTSN32.LOG file and aUSER.DMP file. For MicroStation V8 check the ¦programfiles\Bentley\program\microstation\tmp directory for an exception.log file. Zip up andEmail all three files to email@example.com. This will help us determine where thefailure is occurring. You might have to try these steps several times to get the log file. Inthe email include the following information:The complete version of MicroStation you're running, (go to the Help pull-downin MicroStation and select About MicroStation), this will give you thefull version. You can also get the full version from the Readme.txt file in the%ustation% directory.
The complete version of any MicroStation Engineering Configurations orthird party programs running within MicroStation.
What operating system you're running, i.e. NT 3.51, NT 4.0 etc. Alsonote if any Service Packs are installed. To get the OS version, open the OS controlpanel, Start > Settings > Control Panel. Under the Help Pulldown menu selectAbout %OS%.Keep a record of when the exception error occurs, a list of the IP numbers andwhat function/tool was being used, and what design file you were in whenthe system crashed.Note: The IP number is case sensitive - copy it down exactly as itappears.Sometimes MicroStation can simply hang instead of giving a processorexception error message. In this instance, there is still a way to create a Dr Watsonlog. If MicroStation is hanging at anytime so that the task manager lists it as "notresponding", follow these instructions for creating a Dr Watson log and a user.dmp.
1. Configure the Dr Watson executable per the instructions above.2. Next, recreate the hang. DO NOT end the task.3. Go to Windows Task Manager > Process Tab, to find the process id(PID) of the hung ustation.exe process.4. Open a Command Prompt window (Start > Run, type CMD and push Enter)and enter this command: drwtsn32.exe -p [PID] If, for instance, the PID ofthe hung ustation.exe is 3520, the command would be: drwtsn32.exe -p 3520.5. Dr. Watson should then produce a drwtn32.log and user.dmp file. Theyshould be in the same folder as the drwtsn32.exe.