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.
Tags:
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.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by