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:
parent
52ccbd37a7
commit
434bc49a50
@ -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
|
||||
|
||||
|
4
CASA/micasad/cache/MPFileWatcher.cs
vendored
4
CASA/micasad/cache/MPFileWatcher.cs
vendored
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user