I am trying to use MiletusFileWatcher in a Webcore App.
The following code is being used to set up FileWatcher:
GetMiletusPath( NP_DOCUMENTS, _filePAF );
fw := FileWatcher.Files.Add;
fw.FileName := _filePAF + '\Test.txt';
fw.OnChange := FileWatcherFiles0Change;'
I am puzzled on how filewatcher is suppose to work.
Here are a couple of questions:
-
if the file "Test.txt" does not exist the app is throwing an exception:
"Invalid argument to date encode".
Where and how in the code should the exception be handled. -
If the file does exist and the app is running, and then I edit "Test.txt" from an outside program. The onChange event is not firing.
Why is the onChange event not firing?
Thanks in advance.
--Rick Howitt