I'm using the function fread to read binary data from files.
According to the MSDN, fread has the following parameters:
size_t fread( void *buffer, size_t size, size_t count, FILE *stream
Storage location for data.
Item size in bytes.
Maximum number of items to be read.
Pointer to FILE structure.
When I read data from a local drive all is fine. Whenever I read data from a network path ( even my own drive shared and mapped as network path ) my item size may not be more than 64MB. If it's 64MB+1 Byte, fread fails. As I know this now, I can simply read more items, because I end up with itemsize*count bytes anyway, but I'm curious. Why is this ? Does anyone know why there is a 64MB limit ? There was no mention in the documentation...
BTW: System is XP and 2000 both having these problems.