Brain server can't write above 4GB
#10
Did a little digging, and I may be way off base - seeing as I don't really code much, and have never done anything in C/C++

But this thread on MSDN suggests that on Windows fwrite cannot write out more than 4GB - MSDN - and if attempted exhibits exactly the behaviour I (we) are seeing here.

Quote:So no matter what the size is if it's above 4GB (i've tried to write 10GB originally) it writes out whatever is above closest multiple of 4GB (in the case of 10GB - it writes what is above 8GB hence 2GB) then it gets count as something in multiple of 4GB units (say 8GB) and does
nbytes = (unsigned)(8*1024*1024*1024) =0
and tight loop forever.
Reply


Messages In This Thread
Brain server can't write above 4GB - by illyria - 05-29-2020, 06:52 PM
RE: Brain server can't write above 4GB - by illyria - 05-31-2020, 03:06 PM