Applies To: |
|
Summary: |
Currently there is no Dr Watson available for Windows 95. So if you are getting an exception in Citect under Windows 95 you have no way of capturing detailed information. To get more information on the exception you can either run the 16 bit version of Citect and use DRWATSON.EXE to capture the fault or run 32 bit version of Citect under Windows NT and use DRWTSN32.EXE. The final way is to run Citect with a debugger under Windows 95. The following details how to run Citect under the Microsoft Visual C++ 2.x and 4.x debuggers. You may be able to get similar information by running Citect under other debuggers. |
Solution: |
Procedure for capturing exception
information using Visual C++ under Windows 95 or Windows NT.
The call stack window will look something like this: CITECT32! 00468ae1() Select all the data in the call stack window via the mouse and copy to the clipboard. Then paste into notepad. When you click on the CITECT32! 00468ae1() line in the stack trace window the disassembly window will show the code associated with each function. You should click on the very top line in the call stack as this is the code of most interest. Then select several lines before and after the cursor position and copy to the clipboard and paste into notepad. You should see something like this: 00468ad3 push 00000000 Now select all the data in the register window and copy to the clipboard and paste into notepad. You should see something link this: EAX = 008AFD70 EBX = 007A0000 ECX =
80005090 You have just dumped all information about a single thread running in Citect. Now you need to repeat this procedure for each thread in Citect. From the menu select Debug|Thread. The dialog will show the list of threads with and '*' next to the one in focus. You need to select each thread in turn and repeat the above procedure. You can make this simpler by disabling some of the threads in Citect by setting the CITECT.INI option: [kernel] This will make Citect run a little slower and should not normally be set, however it makes it easier to find problems. Once you have all the debug information send it to Citect support. Pass along with a description of what you where doing to generate the problem and details of your Computer and PLC hardware. Also state which version of Citect you are running and the date and file size of the CITECT32.EXE file. If it takes a long time to reproduce the fault you may want to check you have Visual C setup correctly. You can generate an exception in Citect by opening up the cicode window in the Citect kernel and typing the command DEBUG("GPF");. This will cause Citect to terminate. |
Keywords: |
Related Links
Attachments