Coder Social home page Coder Social logo

Comments (12)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 5, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 5, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 5, 2024
Awesome response. I'll try it asap.

Original comment by [email protected] on 2 May 2013 at 7:58

from snaketail-net.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 5, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 5, 2024
[deleted comment]

from snaketail-net.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 5, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 5, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 5, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 5, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 5, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 5, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 5, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.