.NET 应用程序在某些机器上崩溃并给出“uxtheme.dll”和“NInput.dll”应用程序错误和 .NET 运行时错误

问题描述

当我点击打开对话框按钮并给出"uxtheme.dll" & "时,我的C#应用程序崩溃 NInput.dll" 应用程序错误.NET 运行时错误

我在注册表中进行了更改,以将 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows 中 “GDIProcessHandleQuota”“USERProcessHandleQuota” 的窗口句柄增加到 30000 .

进行这些更改后,我可以使用“打开文件对话框”一次选择文件。但是第二次当我做同样的活动时,我的应用程序崩溃并给出以下错误

事件 1000,应用程序错误

  • 故障模块名称uxtheme.dll,版本:10.0.17763.1075,时间戳:0xf4ffc6f9
  • 异常代码:0xc0000005
  • 故障偏移:0x00029e80
  • 故障进程 ID:0x2eec
  • 故障模块路径:C:\Windows\system32\uxtheme.dll
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005,exception address 71B09E80
Stack:
   at System.Windows.Forms.FileDialogNative+IFileDialog.Show(IntPtr)
   at System.Windows.Forms.FileDialog.RunDialogVista(IntPtr)
   at System.Windows.Forms.FileDialog.RunDialog(IntPtr)
   at System.Windows.Forms.CommonDialog.ShowDialog(System.Windows.Forms.IWin32Window)
   at System.Windows.Forms.CommonDialog.ShowDialog()
   at GBSmartMeters.Forms.AddMeterForm.btnSelectvarFile_Click(System.Object,System.EventArgs)
   at System.Windows.Forms.Control.OnClick(System.EventArgs)
   at System.Windows.Forms.Button.OnClick(System.EventArgs)
   at System.Windows.Forms.Button.onmouseup(System.Windows.Forms.MouseEventArgs)
   at System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef,System.Windows.Forms.MouseButtons,Int32)
   at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.ButtonBase.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.Button.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr,Int32,IntPtr,IntPtr)
   at System.Windows.Forms.UnsafeNativeMethods.dispatchMessageW(MSG ByRef)
   at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.imsoComponentManager.FPushMessageLoop(IntPtr,Int32)
   at System.Windows.Forms.Application+threadcontext.RunMessageLoopInner(Int32,System.Windows.Forms.ApplicationContext)
   at System.Windows.Forms.Application+threadcontext.RunMessageLoop(Int32,System.Windows.Forms.ApplicationContext)
   at System.Windows.Forms.Application.RunDialog(System.Windows.Forms.Form)
   at System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window)
   at System.Windows.Forms.Form.ShowDialog()
   at GBSmartMeters.MainFrame.addMeter_Click(System.Object,System.EventArgs)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(System.Object,System.EventArgs)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(System.EventArgs)
   at System.Windows.Forms.ToolStripItem.HandleClick(System.EventArgs)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(System.Windows.Forms.MouseEventArgs)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(System.EventArgs,System.Windows.Forms.ToolStripItemEventType)
   at System.Windows.Forms.ToolStripItem.FireEvent(System.EventArgs,System.Windows.Forms.ToolStripItemEventType)
   at System.Windows.Forms.ToolStrip.onmouseup(System.Windows.Forms.MouseEventArgs)
   at System.Windows.Forms.toolstripdropdown.onmouseup(System.Windows.Forms.MouseEventArgs)
   at System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef,Int32)
   at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.ToolStrip.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.toolstripdropdown.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr,System.Windows.Forms.ApplicationContext)
   at System.Windows.Forms.Application.Run(System.Windows.Forms.Form)
   at CeweMC.BaseForm.Main(System.String[])

事件 1000,应用程序错误

  • 故障模块名称:NInput.dll,版本:10.0.17763.1075,时间戳:0x3ae411a4
  • 异常代码:0xc0000005
  • 故障偏移:0x0000a05d
  • 故障进程 ID:0x2eec
  • 故障模块路径:C:\Windows\SYstem32\NInput.dll

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)