Custom error handling with the CVCError event.
How can I use customized error handling?
Most CVC ActiveX controls support the i>CVCErrorEvent which is fired when
e.g. an Résponse/fr/produits/acquisition">acquisition
timeout occurs. Custom error handling can be performed by handling this
The provided error code parameter specifies the error which is responsible for
the event. According to this code your application can react on the error. In
addition the error string contains a verbal description of the error code the
continue parameter is provided.
The continue parameter is initialised to an appropriate value before the event
is fired. When set to true the cause of the error is ignored and if possible the
process will be continued (e.g. further images are going to be acquired after an
acquisition timeout). Also a message box will be shown to inform the user of the
error. This will also happen if you don't handle the CVCError event. When set to
false the current process will be stopped and no message box will be
Thus if you want to realize custom error handling for e.g. acquisition timeouts
you could set continue to false and show a custom message box to stop image
acquisition and to present a customized message.