PlugIn.ReturnLicense() always returns false

Hi,
When PlugIn.GetLicense() returns true, the license is validated, which means the “seat” is in use.
image

If I want to free that seat again, I have to shutdown Rhino. But is there a way to do it without shutting down Rhino? PlugIn.ReturnLicense() seems like the right method (based on the description), but it always returns false, and the “seat” is still occupied.

Hi @Darryl_Menezes,

It’s possible that PlugIn.ReturnLicense only works with licenses acquried from a LAN Zoo. Where are you getting your licenses?

– Dale

Hi @dale , Im getting the license from Cloud zoo. Is there an equivalent to ReturnLicense() for this?
Or any workaround?

@will - is this something you can help with?

@dale, you’re right; ReturnLicense() doesn’t have any effect for Cloud Zoo.

LicenseUtils.LogoutOfCloudZoo() will return your cloud zoo license but it will also shut down Rhino. I don’t think we have anything in RhinoCommon that will keep Rhino running after logging out.