npp-plugins / plugintemplate

GNU General Public License v2.0
103 stars 43 forks source link

Update the plugin template to avoid throwing an exception from DllMain #5

Closed mere-human closed 3 years ago

mere-human commented 3 years ago

Description: Plugin DLL should not throw from the DllMain() under any circumstances. This crashes the host application during startup. Prevent issues like this one: https://github.com/Hsilgos/nppsaveasadmin/issues/24

Expected behavior: Add try { } catch (...) { return FALSE: } into DllMain()

donho commented 3 years ago

https://github.com/npp-plugins/plugintemplate/commit/bde87a13c94f3316026b131eee7063feca48817d