Open chcg opened 1 year ago
See analysis for https://github.com/notepad-plus-plus/notepad-plus-plus/issues/4427
My thinking has changed since that earlier post; see https://github.com/StanDog/npp-zoomdisabler/issues/3#issuecomment-1422440770
I don't think it's correct statement that CoUninitialize
is called inside DllMain
in DSpellCheck, particularly NativeSpellerInterface::cleanup
is called on NPPN_SHUTDOWN
. There is also another call during browse for directory but this one probably irrelevant and could be removed.
I think what I can do is to never call CoInitialize/CoUninitialize
unless native speller is used, that would probably make it ok for most of the cases.
See analysis for https://github.com/notepad-plus-plus/notepad-plus-plus/issues/4427