This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

ElMD5 - TCrMD5.MD5_Hash_File works only if file isn't read-Only

Please add in TCrMD5.MD5_Hash_File

  OldFileMode := FileMode;
  FileMode := fmOpenRead;
  try
    AssignFile(InputFile, FInputFilePath);
   ...

  finally
    FileMode := OldFileMode;
  end;


best would be remove of old Assign-File and use modern TStream-Classes.

Comments

Sign In or Register to comment.