Click to See Complete Forum and Search --> : ReadFile from Com Port


xyzzy55
April 19th, 2004, 01:38 PM
Help,

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.

xyzzy55
April 21st, 2004, 02:58 PM
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.