Hi guys,
we build a custom resource handler for caching all files to local disc in order to serve them in case internet connection is lost
or the requested file is already existing. This is working very well for all kind of files. So far, so good.
There's a special case we have to delete all cache files in order to "renew" the cache.
If we delete cache files at the same moment a website is playing a video file,
the resource handler blocks the deletion process because of an open file pointer (
it happens only with video files).
I figured out that the handler holds the file until the
timeout interval (timeoutInSeconds) expires.
Code: C#
public CacheHandler(int timeOutInSeconds = 900, int writeBufferSize = 10240) : base(timeOutInSeconds, writeBufferSize);
Is there a way we can force the handler to release open file pointers?
We already tried to dispose the resource handler, destroy the webview, webcontrol, kill all browser child processes ecc. but nothing really worked.
Thanks
Lukas