[vtkusers] Files larger than 2GB on 32 Bit Windows (XP)

Mike Jackson imikejackson at gmail.com
Fri May 11 15:35:35 EDT 2007


So I got a rude awakening today. I tried to walk through a 3.1 GB  
file on Windows XP. Note that I said "walk through" and not "read  
into memory". The read failed just after the magic 32 bit limit. Um..  
so being a "novice" windows programmer ( I usually work in OS X or  
lInux) what are the possible ways to solve this?
   Currently I am using the std::ifstream to read bytes out of the  
file, process those bytes to determine where to seekg() next.

Is there a way to tell windows that I want to use 64 bit values for  
std::Streamsize? Boost?

Any and all ideas welcome.

Thanks
-- 
Mike Jackson   Senior Research Engineer
Innovative Management & Technology Services





More information about the vtkusers mailing list