I've been using the readfile api to read an image of a hard disk drive which has been mounted to become a virtual disk.
It reads fine for the most part, however usually towards the end of the disk, it occasionally crashes and the readfile api keeps returning error 31, which I looked up in the error codes as "A device attached to the system is not working"
I have used several different programs to mount the image so I cant see it being a problem with the mounting program, I've used several image files and had the same problem.
I don't understand why it just stops, has anyone got any ideas?