I have an old program that was written and is running under .net 2.0 with SP2. It worked with no problems on Windows 7, but on Windows 8 and Windows 10 the program crashes when changing the keyboard layout with ALT+Shift. I created a minidump and analyzed this, and according to the debugger, the faulting module is msftedit.dll, but it doesn't really make any sense that it is a Windows component failing, as all other programs on my machine work just fine and I can change keyboards as I please.
Strangely enough if I assign shortcuts to the keyboards as CTRL+1 and CTRL+3 I can change using those, however CTRL+2 as a shortcut for change of keyboard will cause the application to crash -- and so will ALT+Shift and WIN+Space. Using the language bar and the mouse also causes a crash.
I don't know enough about the inner workings of Windows to debug this and have my application work without a problem, but really need some help with this. I have tried running the application in compatibility mode and that does not change the behavior.