This question is a bit vague - mainly because I’m not entirely sure what I’m looking for.
However, I’ve written a Rhino plugin that interacts with Cuda. It does this through a third party functionality (i.e. I use a third party library to create a class that sets up Cuda, GPU Dispatching, etc…). All this actually works fine when the plugin is double clicked from the file system, i.e. when it is “first” loaded. Once Rhino opens, and the “Plugin loaded successfully” text appears, I can create and destroy the Cuda interaction stuff just fine. Same with running it in debug mode through VS.
Now, my problem is that if I close Rhino and then reopen it, my plugin can’t create the Cuda interaction class. So, my question is, what is the difference (if any) between loading up the plugin via double clicking it vs. simply opening Rhino? Is it possible to get the first behaviour programmatically? Any related info is also welcome.