Bug 229763. Found that reading a file using Mono while that

file is being watched fires a 'OnChanged' event.  Changed the
  file read ReadWrite to a FileAccess.Read prevents this event.
This commit is contained in:
Jim Norman 2007-01-09 07:45:26 +00:00
parent 52ccbd37a7
commit 434bc49a50
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Jan 9 12:27:57 MST 2007 - jnorman@novell.com
- Bug 229763. Found that reading a file using Mono while that
file is being watched fires a 'OnChanged' event. Changed the
file read ReadWrite to a FileAccess.Read prevents this event.
-------------------------------------------------------------------
Thu Jan 4 13:37:03 MST 2007 - jnorman@novell.com

View File

@ -82,12 +82,12 @@ namespace sscs.cache
try
{
FileStream fs = new FileStream(m_dir + m_filename, FileMode.Open);
FileStream fs = new FileStream(m_dir + m_filename, FileMode.Open, FileAccess.Read);
fs.Read(m_baMP, 0, m_baMP.Length);
fs.Flush();
fs.Close();
fs = new FileStream(m_dir + m_filename + ".IV", FileMode.Open);
fs = new FileStream(m_dir + m_filename + ".IV", FileMode.Open, FileAccess.Read);
fs.Read(m_baMPIV, 0, m_baMPIV.Length);
fs.Flush();
fs.Close();