"Robert Marquardt" <> wrote in message
news:...
| > But I'm stumbling with some issues when sending
| > reports with WriteFile. I never get any error
| > results ( WriteFile() returns a non-zero value ),
| > but sometimes the call just doesn't return,
| > and requires me to kill my application.
| >
| > Any idea why this would be happening ?
|
| Try using separate file handles for read and write.
Thanks for the tip.
I tried using a separate Handle for input and output
(from two calls to CreateFile). But no luck.
The USB device receives a first series of Reports,
but then the PC client enters a deadlock. I pause
the client in the debugger and get the message:
The process appears to be deadlocked
(or is not running any user-mode code).
All threads have been stopped.
I only have 1 thread, which is blocked on a call
to WriteFile which never does return.
Any other idea/suggestion ?
tia
--
Ivan Vecerina, Dr. med. <>
http://www.post1.com/~ivec