On Sat, Jul 9, 2011 at 7:23 AM, M.L. wrote: >> Small timeout (say 10ms or 100ms) will never work as Windows >> (or Linux or Mac OS X) is not a RTOS. I always recommend >> a timeout of 1000ms or 5000ms. Some device may need longer. >> > > I gathered that was the issue. I am used to embedded systems where 10ms i= s a > long time and 1000ms might as well be forever. I changed the timeout to a > couple seconds and it has worked since. > Also - I know that windows would never be deterministic, but it wasn't clear to me that a small timeout on a read call could cause the driver/library/my program to crash (not sure which crashed.) --=20 Martin K. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .