RobotStudio event

Handling of errors during start up

Hi,

when creating an application for the flex pendant i found some strnage behaviour.

Have a form with the method InitializeComponent. Call a method to read a file for example. In the code of this method write a try/catch block to avoid an error while opening the file. In the catch block an error message shall be shown with the file error using a GTPUmessagebox. This message is never shown at the teach pendant...

Why and how is it to be handled ? (Currently i read the file later, but that was not hte thing i wanted...)

Thanks ahead

Comments

  • The preferred method would be to run your startup code in the Install, or possibly the Activate method that are part of the ITpsViewSetup and ITpsViewActivation interfaces, rather than InitializeComponent, which is supposed to be reserved for Windows-specific code.

    RussD2006-6-20 14:35:9
    Russell Drown