Hi Chris,
Let me guess, you just happen to have a driver with such facility's ;-)
I have not debugged any further then from my application.
For now I'm just curious if this can be considderred normal behaviour under
certain conditions.
I read the following which worries me (and is news to me) :
http://msdn.microsoft.com/en-us/library/ms810467.aspx
Under the "non-overlapped-IO" part it says that a write would block if a
read is active. That is not true as far as I know, but maybe I am wrong ?.
My app will run under WinCE, but for testing XP would be nice.
So not worth wasting too much time on.
Especially since they did not decide on which driver to buy yet ;-)
Anyway , my read should take max 200ms (I expect +/- 50%) , sometimes the
thread hangs up completely , or for 3500ms, so thats no good anyway, blocking
or no blocking.
Might be just a bug in the driver (the other one...).
Greetings,
Rob
"" wrote:
> On Jun 24, 4:31 am, Rob <R...@discussions.microsoft.com> wrote:
>
> > I noticed that my commu-thread ofter hangs, or reports long looptimes.
> >
> > I am using regular WriteFile()/Readfile(), and SetCommTimeouts().
> > What could be the problem with the long write times ? (or even hangups)
> > Maybe the virtual comport driver is to blame ?
>
> Does the virtual COM port driver offer any logging abilities? That
> would shed a lot of light on the situation. Also, you say it's a USB
> device -- is it possible the device is NAKing the transfer from the
> driver? Have you checked with a bus analyzer or a lower filter to the
> COM port driver?
>