[Qt-interest] Unable to remove QTemporary file: "Access is denied" on windows xp
Mika Rajala
mika_rajala_2 at hotmail.com
Thu Jun 10 13:33:08 CEST 2010
Fixed:
Sorry for your inconvinience.
-mika
From: mika_rajala_2 at hotmail.com
To: qt-interest at trolltech.com
Date: Thu, 10 Jun 2010 11:27:01 +0000
Subject: [Qt-interest] Unable to remove QTemproray file: "Access is denied" on windows xp
Hello
[Windows XP SP2, Visual Studio 2005 with SP1, Qt 4.6.1]
I'm trying to create a program that caches some of it's data to disk, to save memory.
QTemporaryFile seemed to be just the thing i'd need.
However, when it's deleted, the file isn't removed. (auto remove option is turned on by default)
Debugging with visual studio revealed that an error occurs while attempting to delete the file, an error string is also present and it contains "Access is denied".
I have tried giving various open-modes and permissions, but the file still persists.
I even tried to use QFile to access the files, but even there remove failed.
Deleting the file works, if i delete it from
-Windows file explorer
-QFile::remove(<path to file>);
The second option only works if i don't attempt to do it from the same process. The time it worked the old process had already ended.
Any ideas on what I might be missing here?
-mika
Tutustu videoiden avulla Windows Live tuotteisiin. Opi mestariksi.
_________________________________________________________________
Tutustu videoiden avulla Windows Live tuotteisiin.
http://www.microsoft.fi/live
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100610/038a1d57/attachment.html
More information about the Qt-interest-old
mailing list