Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
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:9Russell Drown0
Categories
- All Categories
- 5.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings