: : Hi to all members.
: : I have a little "c" program to read bytes from a hard drive. It works perfectly fine as long as the "nNumberOfBytesToRead" parameter in the ReadFile function (win32 API)is less than 67 MB (approx.). Anything bigger than that, results in the ReadFile function returning 0 (zero) indicating a failure of that function.
: : Could anybody put some light on this.
: : Many thanks to all,
: : Serge Matovic.
: :
:
Try to call GetLastError() and then go to MSDN and find out what happened.
:
: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/system_error_codes.asp
:
Thanks AsmGuru62. Did as you suggested. The error code is 1450, and Msft site says this about it: "ERROR_NO_SYSTEM_RESOURCES Insufficient system resources exist to complete the requested service."
Well, I'm not sure what "resources" am I missing?
Any thoughts?
Serge Matovic.