B2017-078 Open the RO FST file for reading and with file sharing of read/write
This commit is contained in:
parent
9a52e89fd5
commit
c5f12b116a
@ -248,7 +248,9 @@ namespace VEPROMS.CSLA.Library
|
||||
ROFstInfoList fstList = ROFstInfoList.GetBySize(rdi.RODbID, (int)fiRofst.Length);
|
||||
if (fstList.Count > 0)
|
||||
{
|
||||
FileStream fsIn = new FileStream(rofstPath, FileMode.Open, FileAccess.Read, FileShare.Read);
|
||||
// B2017-078 WCN users with Read only access to the RO FST file where not able to open the file for reading when
|
||||
// another user was accessing the file. Changed FileShare from Read to ReadWrite
|
||||
FileStream fsIn = new FileStream(rofstPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
|
||||
// Create an instance of StreamReader that can read characters from the FileStream.
|
||||
BinaryReader r = new BinaryReader(fsIn);
|
||||
byte[] ab = r.ReadBytes((int)fsIn.Length);
|
||||
|
Loading…
x
Reference in New Issue
Block a user