|
本帖最后由 Ryszard 于 2024-9-6 16:56 编辑
A plugin that is an exe file is launched when the StreamDock application is started. However, if you close the application - for example, from the icon menu in the Tray I select Exit - the plugin does not automatically close (kill) but continues to work in Windows. The StreamDock application also does not send any events that could be intercepted and the plugin could be closed (terminated). How do you close applications that are plugins when the StreamDock application is closed?
At the moment I see that such plugins that were launched once and then the StreamDock application was closed are still in memory - they are not closed automatically. Since they are not, I have to close them programmatically... but there is also no event that says that the StreamDock application has been closed. Since they are not dll but exe, the system does not close them by itself. There is no support for sending an event that StreamDock has been closed (terminated).
Or maybe the StreamDock application itself should kill all running plugins when closing it? Since it opens at startup, it should kill them when closing (because it doesn't send any onDestroy events).
|
|