【发布时间】:2011-02-17 17:18:54
【问题描述】:
我有一个抛出以下异常的 .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)
我无法亲自重现此异常,但我收到了很多来自用户的异常报告。
所指的“配额”是什么?堆栈跟踪使我相信这可能是 Windows 消息队列的问题。
任何关于可能导致此错误的原因或如何修复它的想法将不胜感激。
编辑,更多信息:这是在所有机器上的 32 位 Windows XP 上,异常不在 my 代码中,而是在 .NET Framework 事件中某种处理程序。应用程序本身不进行任何 PostMessage 调用。
【问题讨论】:
标签: .net windows exception c#-2.0