We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fedfb2f + 6665a3a commit 5928324Copy full SHA for 5928324
1 file changed
ICSharpCode.AvalonEdit/Editing/ImeNativeWrapper.cs
@@ -116,7 +116,14 @@ public static ITfThreadMgr GetTextFrameworkThreadManager()
116
{
117
if (!textFrameworkThreadMgrInitialized) {
118
textFrameworkThreadMgrInitialized = true;
119
- TF_CreateThreadMgr(out textFrameworkThreadMgr);
+ try
120
+ {
121
+ TF_CreateThreadMgr(out textFrameworkThreadMgr);
122
+ }
123
+ catch
124
125
+ // The call will fail if the current runtime doesn't have COM interop
126
127
}
128
return textFrameworkThreadMgr;
129
0 commit comments