Getting around the 2 gig limit

J. Landman Gay jacque at hyperactivesw.com
Wed May 30 00:22:19 EDT 2007


I actually got the following in my mailbox last week but was out of town 
for the weekend and I'm just catching up now. This is from Mark Waddingham:

> I haven't had a chance to check this but something like the
 > following might work (as a workaround):
> 
> on readFrom64 tFile, tFilePosition, tCount, @rData
>     local tResult
>     if tFilePosition <= 2147483647 then
>         read from file tFile at tFilePosition for tCount
>         put the result into tResult
>         put it into rData
>     else
>         seek to 2147483647 in file tFile
>         seek rel tFilePosition - 2147483647 in file tFile
>         read from file tFile for tCount
>         put the result into tResult
>         put it into rData
>     end if
>     return tResult
> end readFrom64
> 
> (mutatis mutandem for writeTo64) 

You gotta love a programmer who gives instructions in Latin. :)

Dave, heads up. You might want to try this.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list