Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/306.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# HRESULT:0x88980406打开ShowDialog_C#_Wpf_Xaml_.net 3.5 - Fatal编程技术网

C# HRESULT:0x88980406打开ShowDialog

C# HRESULT:0x88980406打开ShowDialog,c#,wpf,xaml,.net-3.5,C#,Wpf,Xaml,.net 3.5,下午好, 在我的公司,我们有一个应用程序(门户),它在一个新的对话框中打开我的申请表。在第16项(每次)出现以下异常之前,我最多可以打开项目15次 以下是例外情况的详细信息 捕获到System.Runtime.InteropServices.COMException 消息=来自HRESULT的异常:0x88980406源=PresentationCore ErrorCode=-2003303418堆栈跟踪:在 System.Windows.Media.Composition.DUCE.Chann

下午好, 在我的公司,我们有一个应用程序(门户),它在一个新的对话框中打开我的申请表。在第16项(每次)出现以下异常之前,我最多可以打开项目15次

以下是例外情况的详细信息

捕获到System.Runtime.InteropServices.COMException 消息=来自HRESULT的异常:0x88980406源=PresentationCore ErrorCode=-2003303418堆栈跟踪:在 System.Windows.Media.Composition.DUCE.Channel.SyncFlush()位于 System.Windows.Media.MediaContext.CompleteRender()位于 System.Windows.Interop.HwndTarget.OnResize()位于 System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg,IntPtr wparam,IntPtr lparam)在 System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr-hwnd, Int32 msg、IntPtr wParam、IntPtr lParam、Boolean和handled)位于 MS.Win32.hwndwapper.WndProc(IntPtr-hwnd、Int32-msg、IntPtr-wParam、, 在 位于的MS.Win32.HwndSubclass.DispatcherCallbackOperation(对象o) System.Windows.Threading.ExceptionWrapper.InternalRealCall(委托 回调、对象参数、布尔值(参数)位于 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(对象源, 委托回调,对象参数,布尔isSingleParameter,委托 捕手)在 System.Windows.Threading.Dispatcher.WrappedInvoke(委托回调, 对象参数,布尔值isSingleParameter,委托catchHandler)位于 System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority 优先级、TimeSpan超时、委托方法、对象参数、布尔值 Issingle参数)在 System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority 优先级、委托方法、对象参数)位于 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr-hwnd,Int32-msg,IntPtr wParam,IntPtr lParam)在 MS.Win32.UnsafentiveMethods.ShowWindow(HandleRef hWnd,Int32 位于System.Windows.Window.ShowHelper(对象布尔框)的 System.Windows.Window.Show()位于System.Windows.Window.ShowDialog()位于 c:\Projects\MyProject\App.xaml.cs中的MyProject.App.Main():第xxx行 内部异常:

其他说明: 如果在showdialog()之后添加以下行

然后,在我关闭2个项目后,我可以再打开2个,但在任何给定的点上都不能超过15个对话框

以下是任务mngr的详细信息,我打开了多达15个项目。 内存:约280k 线程:54 处理2248件, 用户对象:700ish GDI对象:372

在谷歌搜索之后,一些类似的问题是关于透明度或过时的驱动程序,我还将透明度设置为false并更新了所有驱动程序。有些人还建议更新到最新的.net framework(4.5),但我现在无法从3.5版更改

在我的表单中,我确实有一个imagectrl和一个webbrowser,但我会将它们放在近处


任何帮助都将不胜感激。

您是否尝试过在调试中运行门户?(希望这能给你更好的错误信息)重复?不幸的是,我无法调试门户(没有代码或pdb)。我不认为我在按内存或硬件限制,我有8gb的ram,当我经常有15项时,大约有50%的空闲。@sylar-你的程序内存余量与你的ram量不同。如果无法调试门户网站,修复它将非常困难,甚至可能不是您的工作来修复它?@Sayse,有没有可以设置内存限制的常见配置参数?我可以看看。另外,我已经通知了门户网站的工作人员,他们告诉我,我的项目出了问题,而不是门户网站,因为他们无法复制它。
form.ShowDialog();
Dispatcher.CurrentDispatcher.InvokeShutdown();