05-31-2020, 03:06 PM
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.
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) =0and tight loop forever.