Re: Addendum: [BLACKBOX] A question about huge files

From: [at]} <Richard>
Date: Tue, 11 Jun 2013 09:10:51 -0500


Bernhard,
 
Thanks for thinking about this. To answer "how large?", 2.95GB is the size of my test file. It has an XML header describing the data contained, then arrays of binary test data.
 
When I tried to open such a file programmatically in BB as a .dat file, I got a trap. I found that the file length was negative.
 
A quick glance at WinAPI interface does not show a SetFilePointerEx function. Would it be sufficient to copy SetFilePointer and rename it to SetFilePointerEx?
 
Gratefully,
 
Richard


On Tue, Jun 11, 2013 at 2:21 AM, Treutwein Bernhard <Bernhard.Treutwein{([at]})nowhere.xy


        Richard,

         

        after having hit the send buttom, I realized that MSDN says explicitely:

         

        “To work with file pointers that are larger than a single LONG value,

         it is easier to use the SetFilePointerEx <http://msdn.microsoft.com/en-us/library/windows/desktop/aa365542(v=vs.85).aspx> function.”

         

        So I would try to copy Files to Largefiles and HostFiles to HostLargeiles

        and replace SetFilePointer by SetFilePointerEx. You’ll need additional

        interface modules ... and it might be puzzling.

         

        --

          Bernhard
Received on Tue Jun 11 2013 - 16:10:51 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:29:53 UTC