Open RO.FST with READ/WRITE instead of just READ
This commit is contained in:
parent
9b881f551e
commit
cd3d3f15eb
@ -65,7 +65,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
ROFstInfoList fstList = ROFstInfoList.GetBySize(rdi.RODbID, (int)fiRofst.Length);
|
ROFstInfoList fstList = ROFstInfoList.GetBySize(rdi.RODbID, (int)fiRofst.Length);
|
||||||
if (fstList.Count > 0)
|
if (fstList.Count > 0)
|
||||||
{
|
{
|
||||||
FileStream fsIn = new FileStream(rofstPath, FileMode.Open, FileAccess.Read, FileShare.Read);
|
FileStream fsIn = new FileStream(rofstPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
|
||||||
// Create an instance of StreamReader that can read characters from the FileStream.
|
// Create an instance of StreamReader that can read characters from the FileStream.
|
||||||
BinaryReader r = new BinaryReader(fsIn);
|
BinaryReader r = new BinaryReader(fsIn);
|
||||||
byte[] ab = r.ReadBytes((int)fsIn.Length);
|
byte[] ab = r.ReadBytes((int)fsIn.Length);
|
||||||
|
@ -234,7 +234,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Next read in the rofst & make the rofst record.
|
// Next read in the rofst & make the rofst record.
|
||||||
FileStream fsIn = new FileStream(rofstfilepath, FileMode.Open, FileAccess.Read, FileShare.Read);
|
FileStream fsIn = new FileStream(rofstfilepath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
|
||||||
// Create an instance of StreamReader that can read characters from the FileStream.
|
// Create an instance of StreamReader that can read characters from the FileStream.
|
||||||
BinaryReader r = new BinaryReader(fsIn);
|
BinaryReader r = new BinaryReader(fsIn);
|
||||||
byte[] ab = r.ReadBytes((int)fsIn.Length);
|
byte[] ab = r.ReadBytes((int)fsIn.Length);
|
||||||
@ -288,7 +288,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
if (myProgressBarRefresh != null) myProgressBarRefresh(0, 100, "Starting Update");
|
if (myProgressBarRefresh != null) myProgressBarRefresh(0, 100, "Starting Update");
|
||||||
DirectoryInfo di = new DirectoryInfo(rdi.FolderPath);
|
DirectoryInfo di = new DirectoryInfo(rdi.FolderPath);
|
||||||
string rofstfilepath = rdi.FolderPath + @"\ro.fst";
|
string rofstfilepath = rdi.FolderPath + @"\ro.fst";
|
||||||
FileStream fsIn = new FileStream(rofstfilepath, FileMode.Open, FileAccess.Read, FileShare.Read);
|
FileStream fsIn = new FileStream(rofstfilepath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
|
||||||
FileInfo rofstFI = new FileInfo(rofstfilepath);
|
FileInfo rofstFI = new FileInfo(rofstfilepath);
|
||||||
// check if this rofst has been loaded, i.e. dts on file versus dts in db...
|
// check if this rofst has been loaded, i.e. dts on file versus dts in db...
|
||||||
// if so, just make association to existing with docversion.
|
// if so, just make association to existing with docversion.
|
||||||
@ -799,7 +799,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
if (!myAddedROImages.Contains(key))
|
if (!myAddedROImages.Contains(key))
|
||||||
{
|
{
|
||||||
myProgressBarRefresh(0, 100, "Loading " + imgname);
|
myProgressBarRefresh(0, 100, "Loading " + imgname);
|
||||||
FileStream fsIn = new FileStream(imgfile, FileMode.Open, FileAccess.Read, FileShare.Read);
|
FileStream fsIn = new FileStream(imgfile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
|
||||||
BinaryReader r = new BinaryReader(fsIn);
|
BinaryReader r = new BinaryReader(fsIn);
|
||||||
byte[] ab = r.ReadBytes((int)fsIn.Length);
|
byte[] ab = r.ReadBytes((int)fsIn.Length);
|
||||||
r.Close();
|
r.Close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user