.net - What 'quota' is being referred to in this exception message: Not enough quota is available to process this command -
i have .net application throws following exception:
system.componentmodel.win32exception : not enough quota available process command @ ms.win32.unsafenativemethods.postmessage(handleref hwnd, int32 msg, intptr wparam, intptr lparam) @ ms.win32.managedwndproctracker.hookupdefwindowproc(intptr hwnd) @ ms.win32.managedwndproctracker.onappdomainprocessexit() @ ms.win32.managedwndproctracker.managedwndproctrackershutdownlistener.onshutdown(object target) @ ms.internal.shutdownlistener.handleshutdown(object sender, eventargs e)
i can't reproduce exception personally, lots of exception reports users.
what 'quota' being referred to? stack trace leads me believe might problem windows message queue.
any ideas might cause error, or how fix appreciated.
edit, further info: on 32 bit windows xp on machines, , exception not in my code such, .net framework event handler of sort. application not make postmessage calls.
the amount of windows resources of specific type process could allocate technically restricted amount of virtual memory available process. can rather large number, on 64-bit version of windows. of these resources withdrawn internal heap other processes withdraw well. still large number if windows let one process consume all.
which of course doesn't make sense, process should never allowed gobble available resources. quota does, sets upper limit counted number of resources of type. common examples 10,000 windows, 10,000 gdi objects, 10,000 handles. not of them nice round numbers btw.
it take knowing more postmessage() call does, reasonable guess is pushing message queue size past quota. again, resource that's technically limited size of available virtual memory. practically should stay south of that. if accurate, posting messages faster can consumed, throttling required. happens @ exact time program terminating suggests explanation might necessary. thread shutdown order problem, maybe.
Comments
Post a Comment