D
David
Hi all,
I have a windows service that uses the FileSystem watcher.
It is monitoring a folder for files coming in. The files are being
transferred over samba from CentOS Linux. Two files at a time.
We found that when files coming in, they were not being actioned, but when I
re-started the windows service, the files were actioned (by a slightly
different routine, but both the FSwatcher and Startup call the same
filehandling routine.)
I have had to write a log file routine to catch the errors as the machine
the service runs on is not directly accessible. (I am going over a VPN that
restricts my access). The log file is reporting that the file is being
locked by another process.
I am looking for ideas on how to get around this issue. Perhaps some way of
delaying the operation or somehow checking the file lock status and come
back to the routine periodically.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
I have a windows service that uses the FileSystem watcher.
It is monitoring a folder for files coming in. The files are being
transferred over samba from CentOS Linux. Two files at a time.
We found that when files coming in, they were not being actioned, but when I
re-started the windows service, the files were actioned (by a slightly
different routine, but both the FSwatcher and Startup call the same
filehandling routine.)
I have had to write a log file routine to catch the errors as the machine
the service runs on is not directly accessible. (I am going over a VPN that
restricts my access). The log file is reporting that the file is being
locked by another process.
I am looking for ideas on how to get around this issue. Perhaps some way of
delaying the operation or somehow checking the file lock status and come
back to the routine periodically.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available