Comments (12)
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
from snaketail-net.
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:
from snaketail-net.
Awesome response. I'll try it asap.
Original comment by [email protected]
on 2 May 2013 at 7:58
from snaketail-net.
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 [email protected]
on 6 May 2013 at 6:02
from snaketail-net.
[deleted comment]
from snaketail-net.
Never mind, it just appeared to get stuck. Seems to work :)
Just took some time to get past the 'loading file'
Original comment by [email protected]
on 6 May 2013 at 6:19
from snaketail-net.
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
from snaketail-net.
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:
from snaketail-net.
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:
from snaketail-net.
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 [email protected]
on 8 May 2013 at 9:37
from snaketail-net.
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
- Changed state: Started
from snaketail-net.
Ver. 1.9.0 has been released
Original comment by [email protected]
on 30 Sep 2014 at 10:22
- Changed state: Fixed
from snaketail-net.
Related Issues (20)
- File Log Filtering HOT 1
- How to Open/Run snaketail? HOT 1
- Default session to open on startup HOT 2
- Add option to export Bookmarks features HOT 1
- Console Virtual Terminal Sequences HOT 2
- Hit count in window title not work HOT 1
- Double-Click of .log file opens application, but it does not respect Window Size or Position in XML file
- Log files get stale HOT 2
- [1] Doesn't Remember Recents & [2] Can't Select Text [3] Doesn't remember size/Position [4] Tray Options HOT 4
- Un-/zoom with CTRL + mouse wheel HOT 2
- Auto wordwrap needed HOT 1
- Dark mode? HOT 1
- No CMD way? HOT 2
- Crashes if the file in a session is unreachable HOT 5
- Feature Request: Copy / Paste HOT 1
- What does Display Tab icon on log change do? HOT 7
- Feature Request 🔎 Highlight lines HOT 3
- Add support for Windows 11 HOT 5
- Tab icon on log change inconsistent HOT 2
- Enhancement request: Add filter to hide nonmatching lines
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snaketail-net.