I am writing some code in C# to save an image and uses VS2005. My problem is that, I can't delete the image file that is recently created. I am getting an error message from windows " Cannot delete file. There is a sharing violation. The source or destination file may be in use."
my code is ...
Image myImage = CaptureImage(); //function to get image
myImage.Save(filePath);
myImage.Dispose();
thanks.
Loading
SenPosted Sep 19, 2008, 1:12 AM
Mahesh ChandPosted Sep 18, 2008, 12:29 PM