string path;
string fullpath;
ISynchronizeInvoke synchronizingObject;
- bool disposed;
WaitForChangedResult lastData;
bool waiting;
SearchPattern2 pattern;
if (watcher != null)
return;
- int mode = InternalSupportsFSW ();
+ string managed = Environment.GetEnvironmentVariable ("MONO_MANAGED_WATCHER");
+ int mode = 0;
+ if (managed == null)
+ mode = InternalSupportsFSW ();
+
bool ok = false;
if (mode == 2)
ok = FAMWatcher.GetInstance (out watcher);
if (disposing) {
Stop ();
}
- disposed = true;
base.Dispose (disposing);
}