|
hi, I tried GetLastError function in my print program and printed it using FormatMessge function. The result was "The operation completed successfully". It's weird. And by using Bus Hound to check the data, I found 68013 returned an error when I unpluged the flash disk. Today I tried sending 512 Byte ererytime, and sent again when it failed ,it seemed work OK ,though it still returned error when I unplug the flash disk. I feel that when I send a packet more than 512 to generic driver, the driver will sent the data to 68013 several times for me at 512 a packet, but when I unplug the flash disk without remove it safely, the system find a error and interrupt the driver, so some packets have been sent ,some lost, and return an error. When sending 512 it succeed or failed, won't lost data in the driver. I tried using CYAPI, the result was the same. I dont know if it is the dirver's probelm or system.
At some high end computer , it had't the problem, but at low end computer the problem is serious.
regards,
hujianhua
|