Closed GoogleCodeExporter closed 9 years ago
Sounds like I'm hit by this error, when using DirectoryInfo.GetFiles:
http://stackoverflow.com/questions/12825605/directory-getfiles-not-returning-the
-correct-number-of-files
Maybe have to consider to use the FileSystemWatcher class, though it also seem
to have bugs:
http://www.codeproject.com/Articles/15656/Advanced-FileSystemWatcher
Original comment by sweaty1
on 2 May 2013 at 7:14
Could you try if the attached file SnakeTail.v1.8.2.1.zip solves the problem.
I have added a forced Refresh of the DirectoryInfo object used to list files on
the network share.
I have tried to use SnakeTail to monitor a network share without the forced
Refresh, and it had no issue with detecting a new file had arrived (Created the
file using Remote Desktop and had no open Windows Explorer windows)
Original comment by sweaty1
on 2 May 2013 at 7:33
Attachments:
Awesome response. I'll try it asap.
Original comment by yam...@gmail.com
on 2 May 2013 at 7:58
Doesn't seem to work right.
Seems to get stuck on 'Loading File'
File size is about 52 MB. So nothing extra big.
Original comment by yam...@gmail.com
on 6 May 2013 at 6:02
[deleted comment]
Never mind, it just appeared to get stuck. Seems to work :)
Just took some time to get past the 'loading file'
Original comment by yam...@gmail.com
on 6 May 2013 at 6:19
Maybe we should try to use a dedicated thread for monitoring for new files, so
it doesn't block the entire application.
Original comment by sweaty1
on 6 May 2013 at 6:27
Could you try if the attached file SnakeTail.v1.8.2.2.zip works without
blocking ?
The delay will probably still be there, as it still has to wait for the network
share to be refreshed.
Original comment by sweaty1
on 6 May 2013 at 8:09
Attachments:
Could you try if the attached file SnakeTail.v1.8.2.3.zip works without
blocking ?
Improved exception handling, when using threads.
Original comment by sweaty1
on 8 May 2013 at 8:54
Attachments:
yes SnakeTail.v1.8.2.3.zip worked much better.
It still 'blocks' a little bit when I first opened the session. Perhaps
unresponsive for like 3 seconds. But aside from the load session bit, there
isn't any noticeable blocking.
Looks like a very good change to me!
Original comment by yam...@gmail.com
on 8 May 2013 at 9:37
Yes 1.8.2.2 had a "late night blunder" where it performed both synchronous and
asynchronous refresh of the directory. Now it only performs asynchronous
refresh.
Also got myself a ThreadPoolQueue, which I can use for executing external tools
asynchronously, when there is line that matches a keyword. But that is for
another issue.
Original comment by sweaty1
on 8 May 2013 at 9:53
Ver. 1.9.0 has been released
Original comment by snakenes...@gmail.com
on 30 Sep 2014 at 10:22
Original issue reported on code.google.com by
yam...@gmail.com
on 1 May 2013 at 7:55