what`s the differece between "dispose"and"release"
doc-zee
✭
when i use
"this.master = Mastership.Request(controller.Rapid);"in the front of my program to Perform operation ,and finally use "this.master.Release();"to release the mastership.but when the program perform the middle of the program ,the mastership will be not released.so i add a button like this:
private void button30_Click(object sender, EventArgs e)
{
ismaster = this.controller.Rapid.IsMaster;
if (ismaster == true)
{
this.master.Dispose();
}
}
{
ismaster = this.controller.Rapid.IsMaster;
if (ismaster == true)
{
this.master.Dispose();
}
}
but there`s not any use at all.so how can i solve it. And what`s the different between "dispose" and "release"?Thank you very much!
0
Comments
-
i`ve used "this.master.Release();",and it is also useless.
0 -
This is a very late answer, but I left this for any one who has same question.
According to the manual enclosed within SDK folder, "release" is for releasing the mastership acquired while "dispose" is for disposing the object of the mastership(instance).
I hope this helps.0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings