[Mono-bugs] [Bug 336676] Double free in libgamin

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 26 07:18:10 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=336676#c4





--- Comment #4 from Robert Jordan <robertj at gmx.net>  2007-10-26 05:18:10 MST ---
ASP.NET is using the watcher to detect file changes in order to recompile
them if necessary. It also watches web.config changes.

The following code shows the watcher implementation:

using System;
using System.Reflection;
using System.IO;

class Test {
        public static void Main ()
        {
                FileSystemWatcher fsw = new FileSystemWatcher ();
                FieldInfo fi = typeof (FileSystemWatcher).GetField ("watcher",
BindingFlags.Static | BindingFlags.NonPublic);
                Console.WriteLine (fi.GetValue (fsw).GetType ());
        }
}

The managed watcher is slow in detecting changes, because it has to
poll the files/directories. To avoid overloading the machine, it
checks for changes every 750ms.

For ASP.NET it's pretty irrelevant how fast changes are detected,
because only the information that something changed is important.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list