提交 9f0fded2 编写于 作者: S Sam Harwell

Use an AppContext switch to work around the WeakEventTable crashes

See jaredpar/VsVim#2471
上级 d0f570d1
......@@ -53,7 +53,10 @@ public StaTaskScheduler()
threadStartedEvent.Wait();
DispatcherSynchronizationContext = synchronizationContext;
};
}
// Work around the WeakEventTable Shutdown race conditions
AppContext.SetSwitch("Switch.MS.Internal.DoNotInvokeInWeakEventTableShutdownListener", isEnabled: true);
}
public DispatcherSynchronizationContext DispatcherSynchronizationContext
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册