我在我的WPF应用程序中有WebBrowser。我用它来查看pdf文件。但在浏览了50个文件后,应用程序抛出了一个异常。所以我们决定在打开下一个pdf之前先处理网页浏览器。问题是我不知道该怎么做。BindableSourcePropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) WebBrowserbrowser = o as WebBrowser;
if (browser != null
我对webBrowser控件中的内存泄漏有问题。我找到了这条线索:
//dispose to clear most of the referencesBindingOperations.ClearAllBindings(this.webbrowser);
//using reflection to remove one reference that was not removed with the
问题是我不确定如何让它通过WPF与WinForms控件一起工作。
public void DisposeWebBrowser(System.Windows.Forms.WebBrowser browser) //dispose to clear most of the references
browser.Disp