.Net 6.0 的WPF Window中添加了WindowsFormsHost,关闭弹窗之后,WindowsFormsHost无法释放内存。调用了:
image3DPanel.Dispose();
image3DPanel = null;
WinFormHost.Child = null;
WinFormHost.Dispose();
WinFormHost = null;
base.OnClosed(e);
GC.Collect();
GC.WaitForPendingFinalizers();
GC.Collect();
弹框对象始终无法回收,求指教