ERROR_NOT_ENOUGH_QUOTA from ReadFile

I open a 5 com ports with a CreateFile call, each in a seperate thread. After some number of reads and writes using ReadFile and WriteFile i start getting the error ERROR_NOT_ENOUGH_QUOTA when the read returns with no bytes read. This error does not occur when bytes are read from the com port.

Can you help?

Thanks
Philip Smith
Shuffle Master, Inc.
[376 byte] By [xyzzy55] at [2007-11-18 19:15:20]
# 1 Re: ERROR_NOT_ENOUGH_QUOTA from ReadFile
As it turns out this was our fault. We were sending messages to a dialog box that had not been iterated. After a time the queue filled up and we got this error from ReadFile. The only strange thing is ReadFile got the error. Must be some commanality between the two.
xyzzy55 at 2007-11-9 12:02:51 >