Grasshopper

algorithmic modeling for Rhino

Dear All,

I have been looking without success for an event that would correspond to the fact that Grasshopper is being unloaded, to be able to monitor it (to trigger the killing of other procedures, etc.). Does anybody now if such a thing exists in the SDK?

Thank you in advance,

Thibault.

Views: 555

Replies to This Discussion

It doesn't. Grasshopper never fully unloads as it is not possible to unload an assembly from an AppDomain. In this case, the lifetime of Grasshopper (and all assemblies loaded by GH) is tied to the lifetime of Rhino.exe

--

David Rutten

david@mcneel.com

Tirol, Austria

Hi David,

Yes this is what I just figured by monitoring the app... so I suppose I will have to trust the garbage collector to properly dispose of the threads I will start.

Thanks for your answer!

You could use the RhinoApp.Closing event if you really need to

http://4.rhino3d.com/5/rhinocommon/html/E_Rhino_RhinoApp_Closing.htm

Thank you Steve, I will test this solution as well.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service