Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.
DisconnectFromLibrary's problem
hohox
✭
in RobotStudio
In my program the method DisconnectFromLibrary() can work well in the addin's main class. But cannot work in my own forms class. I don't know why.
Anyone knows why? And how to Disconnect Library in user's form call?Thanks a lot!
0
Comments
-
Are you using VSTA or Visual Studio?
In a Visual Studio addin, make sure to only call API methods from the main thread (the same thread that calls AddinMain()).
regards,
Johannes
Johannes Weiman
Software Engineer
ABB Robotics0 -
I'm using Visual Studio.Actually I create a C# form in AddinMain(), and then click the button on this form to disconnect library. And it cannot work!Is this in a different thread from the main thread?Sorry, I'm new to the C# program
. Thank you!0
Categories
- All Categories
- 5.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 16 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 366 IRC5
- 86 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 856 RAPID Programming
- 40 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings
