Comments (8)
Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).
This looks something like the string doesn't have the null character at the end of the string. Can you try a thing? Go to the WatcherWin32.cpp, and memset to NULL szFile before WideCharToMultiByte.
Also, test everything without Qt first if you can.
Regards,
Martín
from efsw.
Original comment by Yash pal (Bitbucket: codeyash, GitHub: codeyash).
Things are working good on linux platform with same code.
Without Qt its no use and I'm not sure how to test.
I will try your comment.
from efsw.
Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).
Also, you shouldn't be using QString::fromStdString, efsw is UTF-8 in all platforms.
PD: It must be something with your configuration ( since this is being used in other projects for windows ), but i really don't have any clue, you only changed that line reported in the issue #27?
from efsw.
Original comment by Yash pal (Bitbucket: codeyash, GitHub: codeyash).
Weird chars problem gone.
But signals are emitting twice. I've removed QObject usage.
DIR = "N:/Projects/www/vertis" FILE = "new-.png" has event Delete
Any clue/idea to debug this.
DIR = "N:/Projects/www/vertis" FILE = "new-.png" has event Delete
from efsw.
Original comment by Yash pal (Bitbucket: codeyash, GitHub: codeyash).
Part 2 Solved
PART 1 and PART3 are still open
from efsw.
Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).
Part 3 is not a bug at all, that's the correct behavior. A file being copied is that: open the file, write a chunk of data, then another, and another until the file is completed.
I must clarify that this is not something that i manage manually, this is what the OS is reporting. And the library will respect that. Also think about it, how can i know that the file copy ended? I would need to know the file descriptors that opened that file in write mode and keep track of them until the file descriptor is closed. This is totally out of the scope of the library.
Part 1 seems to be related with the qt issue that you commented before.
But confirm me that the problem is: you're receiving duplicated events for everything or just some of the events?
from efsw.
Original comment by Yash pal (Bitbucket: codeyash, GitHub: codeyash).
Not sure about part 3 but it is extra work it should be done by app and not library. I agree.
But certainly if library can support this , library will be awesome.
from efsw.
Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).
I'll close this issue.
For part 3, we already discussed that.
For part 1, if you are sure that this happens without any interference of Qt objects continue the conversation in issue #5.
Regards
from efsw.
Related Issues (20)
- Filename passed without extension HOT 1
- Cannot track symlinked file in Linux HOT 10
- Bazel Building HOT 1
- On MacOS, actions happening shortly after starting watcher are not reported HOT 19
- CMake multi config issue HOT 2
- Support Windows long path aware HOT 4
- Check Return Code and Allow Buffer Customization in `ReadDirectoryChangesW()` Function HOT 1
- Paranoid exit code? HOT 2
- MacOS build on server HOT 1
- [Bug] Crash while thread running after FileWatcherInotfiy destructed. HOT 16
- Premake5 macosx after gmake2 ... [CI Server] HOT 1
- Last modified file remembered and failing to fire event under Windows HOT 5
- Premake links in ReadMe is dead HOT 1
- FSEventStreamScheduleWithRunLoop has been deprecated in MacOS 13 HOT 3
- Nested template syntax breaks LEGACY builds HOT 3
- Generic file watcher doesn't report new directories on network drives HOT 2
- memory leak doubt and thread conflict HOT 2
- Cross building on macOS may cause `EFSW_FSEVENTS_NOT_SUPPORTED` incorrectly defined HOT 2
- Incorrect move events reported for simultaneous file moves across monitored subdirectories on Windows HOT 9
- Warning C4834 in Log.cpp
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 efsw.