我有一个.NET应用程序,抛出以下异常:
System.ComponentModel.Win32Exception : Not enough quota is available to process this command
at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at MS.Win32.ManagedWndProcTracker.HookUpDefWindowProc(IntPtr hwnd)
at MS.Win32.ManagedWndProcTracker.OnAppDomainProcessExit()
at MS.Win32.ManagedWndProcTracker.ManagedWndProcTrackerShutDownListener.OnShutDown(Object target)
at MS.Internal.ShutDownListener.HandleShutDown(Object sender, EventArgs e)
Run Code Online (Sandbox Code Playgroud)
我无法亲自重现此异常,但我收到了很多来自用户的异常报告.
提到的"配额"是什么?堆栈跟踪让我相信它可能是Windows消息队列的问题.
任何关于可能导致此错误或如何修复错误的想法都将非常感激.
编辑,进一步信息: 这是在所有机器上的32位Windows XP上,并且异常不在我的代码中,而是某种.NET Framework事件处理程序.应用程序本身不会进行任何PostMessage调用.
我希望我的应用程序创建一个小型转储,以帮助调试无法处理的异常.
我可能不知道在创建转储之前我想要什么类型的迷你转储,那么我应该使用哪种MINIDUMP_TYPE标志组合来为我提供最完整的转储?