Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.
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.
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.
Application problem with Mastership release
EugeneB
✭
I'm testing one of the functions in c# application. Something happened
and my Robot Studio virtual station is stuck with - Remote Write Access - from
one of my testing. Not sure what exactly happened but I glad it did. Now when I
trying to run my application is throwing me an exception - Requested
resource is held by someone else. Now I need to come up with the solution if this happens
in production. How can I check if is Mastership is held by someone else and if
yes then dispose or check if it's my mastership and if it's mine then continue?
This is an example of my code where is throwing an exception:
This is an example of my code where is throwing an exception:
try
{
if (controller.OperatingMode == ControllerOperatingMode.Auto)
{
tasks = controller.Rapid.GetTasks();
using (Mastership m = Mastership.Request(controller.Rapid)) // on this line is throwing an exception
{
if (m.IsMaster != true)
{
tasks[0].LoadModuleFromFile(filePath, RapidLoadMode.Replace);
//controller.IOSystem.GetSignal($"{startSignal}");
// set digital signal
//Signal sig = controller.IOSystem.GetSignal(startSignal);
//digitalSig = (DigitalSignal)sig;
//Perform operation
tasks[0].Start();
}
}
}
Will appreciate any help.
Thank you,
Will appreciate any help.
Thank you,
0
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