Discussion:
DeleteUrlEntryCache error 32?
(too old to reply)
g***@gmail.com
2008-01-14 02:40:40 UTC
Permalink
Can anyone tell me why I would get a "Sharing Violation" (error 32
from GetLastError()) trying to delete a cache file entry created by
IE7.

There are no IE windows open, it has nothing to do with my program as
DeleteUrlEntryCache is the first thing I do.

The URL passed to it is valid. It returns ERROR_FILE_NOT_FOUND when I
clear the IE cache
Volodymyr Shcherbyna
2008-01-14 07:49:30 UTC
Permalink
Do you pass CACHEGROUP_FLAG_FLUSHURL_ONDELETE DeleteUrlCacheGroup(...) ?
--
Volodymyr
NG tips:
http://msmvps.com/blogs/v_scherbina/pages/microsoft-newsgroups-tips.aspx
Post by g***@gmail.com
Can anyone tell me why I would get a "Sharing Violation" (error 32
from GetLastError()) trying to delete a cache file entry created by
IE7.
There are no IE windows open, it has nothing to do with my program as
DeleteUrlEntryCache is the first thing I do.
The URL passed to it is valid. It returns ERROR_FILE_NOT_FOUND when I
clear the IE cache
g***@gmail.com
2008-01-14 11:52:12 UTC
Permalink
On Jan 14, 7:49 am, "Volodymyr Shcherbyna"
Post by Volodymyr Shcherbyna
Do you pass CACHEGROUP_FLAG_FLUSHURL_ONDELETE DeleteUrlCacheGroup(...) ?
--
Volodymyr
NG tips:http://msmvps.com/blogs/v_scherbina/pages/microsoft-newsgroups-tips.aspx
Hi, why would I need to us DeleteUrlCacheGroup?
Volodymyr Shcherbyna
2008-01-14 13:22:30 UTC
Permalink
Oops, I misunderstood the function name.

Seems like the cache file is locked by some application, and you cannot
delete it, until it's handles are not released. You can use Russinovich's
Filemon
(http://www.microsoft.com/technet/sysinternals/FileAndDisk/Filemon.mspx) to
detect the file name which represent the cache data, and then use Handle
(http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/Handle.mspx)
utility to obtain the process name which locked the file.
--
Volodymyr
NG tips:
http://msmvps.com/blogs/v_scherbina/pages/microsoft-newsgroups-tips.aspx
Post by g***@gmail.com
On Jan 14, 7:49 am, "Volodymyr Shcherbyna"
Post by Volodymyr Shcherbyna
Do you pass CACHEGROUP_FLAG_FLUSHURL_ONDELETE DeleteUrlCacheGroup(...) ?
--
Volodymyr
NG
tips:http://msmvps.com/blogs/v_scherbina/pages/microsoft-newsgroups-tips.aspx
Hi, why would I need to us DeleteUrlCacheGroup?
Loading...