-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event sent twice #45
Comments
Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ). Hi Ugo, |
Original comment by Ugo Robain (Bitbucket: wizzhard, GitHub: wizzhard). I don't know why but if I inherit an object from FileWatcher and QObject is causes the events to be duplicated sometimes, in fact events come from two differents threads. I have separated FileWatcher from my QObject and it works now. Thx, I think we can close the bug. |
Original comment by Yash pal (Bitbucket: codeyash, GitHub: codeyash). Facing similar problem. Even removing QObject didn't solve problem. Also we should support using QObject if we are using Qt. Without QObject most of things we can't use. I've already created a bug with more info on this. We should reopen this and attach to new reported one. |
Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ). If this a Qt issue i will not give any kind of support because it's out of the scope of the project. If the bug comes from something in the library, i'm glad to see what's failing, but first i need a simple proof that this is an issue in the library ( code sample, and how to replicate the problem ). |
Original comment by Yash pal (Bitbucket: codeyash, GitHub: codeyash). Hi Martin, Facing again but only in MAC this time. http://pastebin.com/xpjLNZmx - CPP File http://pastebin.com/GhuanL9D - H File Contains both classes Watcher and listener. I've disabled all Qt part but result still same. Yosemite MAC OS OutPut: DIR ( "/Volumes/Work/Projects/www/market/public/" ) FILE ( "index.php" ) has event Modified DIR ( "/Volumes/Work/Projects/www/market/" ) FILE ( "public" ) has event Modified Please note: FILETYPE containing line is not duplicate. Its handled. (not good as of now) Can you see what's the issue or anything I'm doing wrong. Thanks, |
Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ). Hi Yash! It's not rare to receive two modified events in row, that depends on how the files are modified by the software who's modifying the file.
for something that only takes the Modified flag as Modified ( this wouldn't be correct, but, you can try ):
The way you get this notifications is handled mostly by the OS, the only thing i can change is that flags that i mentioned. For me it looks OK your log, but i don't know what's going on in the background ( how the files are being modified ). Regards! |
Original report by Ugo Robain (Bitbucket: wizzhard, GitHub: wizzhard).
It seems that events are sent twice sometime. This is valid for all events (add, delete, moved, modified)
I use windows 7 x64 with a not generic file watcher.
The text was updated successfully, but these errors were encountered: