Hello. I noticed QFile::remove has problems with deleting files sometimes, namely I can't delete the video file. I think it is somehow related to sharing violation, BUT with WinAPI function DeleteFile it is deleted without any problems, so I suppose there is some bug in QFile. I have this issue always with that file, so it is easy to reproduce.
Sample:
// returns false
QFile::remove("C:/Users/shroom/Documents/TestIt/downloads/The.Matrix.1999.iNTERNAL.DVDRip.XviD.AC3-XviK/The.Matrix.1999.iNTERNAL.DVDRip.XviD.AC3.CD1-XviK.avi");
// returns 1 and deletes fine
DeleteFileA("C:/Users/shroom/Documents/TestIt/downloads/The.Matrix.1999.iNTERNAL.DVDRip.XviD.AC3-XviK/The.Matrix.1999.iNTERNAL.DVDRip.XviD.AC3.CD1-XviK.avi");
// returns false
QFile::remove("C:/Users/shroom/Documents/TestIt/downloads/The.Matrix.1999.iNTERNAL.DVDRip.XviD.AC3-XviK/The.Matrix.1999.iNTERNAL.DVDRip.XviD.AC3.CD1-XviK.avi");
// returns 1 and deletes fine
DeleteFileA("C:/Users/shroom/Documents/TestIt/downloads/The.Matrix.1999.iNTERNAL.DVDRip.XviD.AC3-XviK/The.Matrix.1999.iNTERNAL.DVDRip.XviD.AC3.CD1-XviK.avi");
To copy to clipboard, switch view to plain text mode
I am using Qt 4.7.2 and my operating system is Windows 7 x64
Bookmarks