wrtorrent
wrtorrent
C2220: `以下警告被视为错误` error C2220: warning treated as error C4996 `被声明为已否决` warning C4996: was declared deprecated I'm using VS2022 have no problem compiling with `deprecated-functions DEFAULT ON` via cmake. Option [/WX-](https://docs.microsoft.com/en-us/cpp/build/reference/compiler-option-warning-level?view=msvc-170)...
235.97.29.105:1024 port number is low? linux had restriction somewhere on connecting (binding) to low port numbers
> `Working Set` of qbittorrent and the system RAM usage go constantly up. I assume this is due to the OS caching nope, OS caching do not increase RAM usage...
> every time a file completes, its file handle is closed. I believe this will flush it to disk nope auto fsfile = std::fstream(...); fsfile.write(&buf, buf.size()).flush(); // flush fsfile.close(); //...
can you try _wfopen_s()?
_wfopen_s() difference is another process can get 13 Permission denied when accessing file _wfsopen(, _SH_DENYNO); still produce `errno: 13 Permission denied`, file contents can be viewed. _wfsopen(, _SH_DENYRW); act similar...
>takes 20 minutes 1 hour passed no errors. I have to actively reopen file (while it being written) with file viewer to get access errors from example code. Another program...
>fopen() does open the files in exclusive mode I think my file viewer do exactly this. I do not get `Permission denied` errors unless continuously open file with 3rd party...
By `win32_storage` do you mean `CreateFile()`? `CreateFile() error 32 (0x00000020) The process cannot access the file because it is being used by another process.` Only change to gqw patch should...
The code that produced error was ``` while (-1) { hf = CreateFile(L"somefile.dat", GENERIC_READ | GENERIC_WRITE | FILE_APPEND_DATA, // FILE_APPEND_DATA, FILE_SHARE_READ | FILE_SHARE_WRITE, // 0 NULL, // LPSECURITY_ATTRIBUTES OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL,...