I have a usb device that controls a power supply. That usb device must
perform a procedure, named Zero_outputs(), in the event of any error.
Clearly, within my main form (the only form in this application) I can have
each method envelope a Try-Catch statement that calls Zero_outputs() in the
catch clause.
However, I fear that certain application errors might occur outside of the
context of any given method in my main form. Is there a way to execute
Zero_outputs() whenever any error, of any kind, occurs in my application?
perform a procedure, named Zero_outputs(), in the event of any error.
Clearly, within my main form (the only form in this application) I can have
each method envelope a Try-Catch statement that calls Zero_outputs() in the
catch clause.
However, I fear that certain application errors might occur outside of the
context of any given method in my main form. Is there a way to execute
Zero_outputs() whenever any error, of any kind, occurs in my application?
Comment