spiegel-keyman/windows/src/engine/kmcomapi/com
Marc Durdin 3a59175465 fix(windows): avoid error if keyman32.dll renamed
Fixes #4939.
Fixes KEYMAN-WINDOWS-70.
Fixes KEYMAN-WINDOWS-71.
Fixes KEYMAN-WINDOWS-BR.
Fixes KEYMAN-WINDOWS-6J.

I am speculating a little here, because the root cause is not visible in
the crash report, but it appears that if keyman32.dll is renamed, that
the UnregisterControllerWindows function attempts to reload keyman32.dll
which means that (a) it no longer has a list of registered controllers,
and (b) it may fail to reload.

Instead of throwing an exception, we now only log this error in
development mode. The error is not likely to cause significant trouble
for end users as they are shutting down Keyman anyway at this point.

The resolution if there is any uncertainty during an upgrade is to
restart Windows. This is less than ideal but avoids file locks and
problems with in-memory DLLs. (Future versions of Keyman will schedule
upgrades to happen automatically after a restart before Keyman has been
started, in an effort to avoid this kind of trauma.)
2021-04-21 14:21:17 +10:00
..
customisation chore(windows): cleanup of i18n 2020-07-27 16:54:23 +10:00
errors Keyman Desktop and Keyman Developer open source 10.0 alpha seed (#121) 2017-07-25 10:53:06 +07:00
hotkeys fix(windows): exception handling list error 2020-12-17 11:54:39 +11:00
keyboardlanguages fix(windows): Handle disabled profiles and invalid language ids 2021-03-10 10:34:55 +11:00
keyboardoptions fix(windows): exception handling list error 2020-12-17 11:54:39 +11:00
keyboards fix(windows): Trigger language sync after changes 2021-03-15 09:43:07 +11:00
languages fix(windows): exception handling list error 2020-12-17 11:54:39 +11:00
options chore(windows): address review comments 2021-03-09 15:48:52 +11:00
packages fix(windows): exception handling list error 2020-12-17 11:54:39 +11:00
system fix(windows): avoid error if keyman32.dll renamed 2021-04-21 14:21:17 +10:00
keyman_implementation.pas feat(developer): improve BCP 47 canonicalization 2021-02-05 16:56:21 +11:00