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.6K RobotStudio
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 339 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 834 RAPID Programming
- 16 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings