Hi
Anyone know if there's any way to detect when a plugin is "unloaded." Granted, it looks like the only time that happens is during MC shutdown, but there doesn't appear to be any shutdown event.
And since I'm in VB.NET, the finalize/dispose methods don't get called in this particular case (I'm guessing because MC deals with COM objects, which are treated special in VB.NET).
The HandleDestroyed event does get fired, but it appears to get fired EVERY time I click away from the plugin screen. When I click back to it, the control appears to be recreated, so that's not accurate as to the app actually shutting down.
The reason I ask, is that it'd be nice to have some spot to attach "shutdown" behaviors, saving settings, that sort of thing.
I could do it "as the user clicks", but in some cases, that's not the greatest solution.