Monitor running programs
Contents
[
Hide
]
How to monitor a running program
The following sample code shows how to monitor a running program. This code can be used to monitor the running of Workbook related code. Simply use the SystemTimeInterruptMonitor class to create a monitoring object, use the SetInterruptMonitor function to add it to the LoadOptions running parameters, and then use the StartMonitor function to set the expected interruption time (in milliseconds). If the running time of the monitored code exceeds the expected time, the program will be interrupted and an exception will be thrown.