MD5 digests of very big files
Alejandro Tejada
capellan2000 at gmail.com
Sun Jun 27 15:11:02 EDT 2010
Looks like the culprit is the condition
to escape the repeat structure.
The result never reach the EOF "end of file".
Which other condition could i use to
verify that the file have been reading
completely?
Thanks in advance!
Al
> In this enhancement request written by Mark Schonewille:
> http://quality.runrev.com/qacenter/show_bug.cgi?id=2410
>
> Mark Waddingham posted this function:
>
> function quasiMD5 pFile
> local tMD5s
> open file pFile for binary read
> repeat
> read from file pFile for 4096 chars
> if the result is EOF then -- Alert!!! the result never reach "EOF"
> exit repeat
> end if
> put the md5digest of it after tMD5s
> end repeat
> close file pFile
> return the md5Digest of tMD5s
> end quasiMD5
>
> But when i run this function, Rev
> consumes all memory available.
--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/MD5-digests-of-very-big-files-tp2270182p2270228.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list