TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sen
NA
39
0
Can't delete the recently created image file
Sep 18 2008 8:51 AM
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.
Reply
Answers (
2
)
Two Forms in c#
MDI TOPMOST PROBLEM