We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fedfb2f commit 6665a3aCopy full SHA for 6665a3a
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