Invisionsoft
Well-known member
Hello.
I am using a webclient to download a file to my hard-drive. Every 10 minutes using a timer I want it to redownload the image (it is constantly changing). However using a webclient once time seems to lock the file even if i dispose it. So I cannot re-write the file in 10 minutes. The innerexception was "The process cannot access the file thing.jpg because it is being used by another process". There are no other processes using it (I have checked using Unlocker). Is there a way to free the image from the webclient, or use a different way to download the image (NB. I do not have access to FTP server for this site). Also, could setting the image as a backgroundimage to a panel be the culpret?
Regards
Invisionsoft
I am using a webclient to download a file to my hard-drive. Every 10 minutes using a timer I want it to redownload the image (it is constantly changing). However using a webclient once time seems to lock the file even if i dispose it. So I cannot re-write the file in 10 minutes. The innerexception was "The process cannot access the file thing.jpg because it is being used by another process". There are no other processes using it (I have checked using Unlocker). Is there a way to free the image from the webclient, or use a different way to download the image (NB. I do not have access to FTP server for this site). Also, could setting the image as a backgroundimage to a panel be the culpret?
Regards
Invisionsoft