Occasionally my DeviceIOControl( ) returns and if an error is returned a subsequent call to GetLastError will give me “ERROR_NOT_ENOUGH_QUOTA”.
The calls that I’ve seen fail so far as pretty simple read and write calls via IOControl to my PCI board. I’ve seen this behavior when running my application to loop a procedure to test it’s durability. The procedure does many DeviceIOcontrol calls and at some point it can return this error before completing.
I can’t seem to find too much information as to possible causes behind this error. The one that seems to make sense refers to Async IO. In my init I believe I’m correctly using Sync IO.
WDF_IO_QUEUE_CONFIG_INIT_DEFAULT_QUEUE(&ioQConfig,WdfIoQueueDispatchSequential)
Any suggestions or ideas? I don’t know what exactly can cause this error. I imagine it is running out of some resource but i don’t know which and I don’t know why. I don’t run any calls in parallel. All calls are completed before the next is made. Not sure how I could run out of a resource randomly when the procedure is identical each time but only fails sometimes.