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.

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.