RobotStudio event

what`s the differece between "dispose"and"release"

  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();
               
            }
        }

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!

Comments

  •  i`ve used "this.master.Release();",and it is also useless.
  • 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.