Dot Net solving problems

Dot Net solving problems

Wednesday, 18 December 2013

Cannot delete file its being used by another process



delete file error the process cannot access the file because it is being used by another process.the process cannot access the file because it is being used c#.

Solution

Type following code before your code
GC.Collect();
GC.WaitForPendingFinalizers();
Posted by RajaDurai at 03:57 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Me

My photo
RajaDurai
View my complete profile

Blog Archive

  • ►  2016 (2)
    • ►  June (2)
  • ►  2015 (6)
    • ►  August (2)
    • ►  February (4)
  • ►  2014 (11)
    • ►  August (3)
    • ►  June (6)
    • ►  February (2)
  • ▼  2013 (23)
    • ▼  December (1)
      • Cannot delete file its being used by another process
    • ►  October (4)
    • ►  July (4)
    • ►  June (1)
    • ►  March (2)
    • ►  February (11)
  • ►  2012 (26)
    • ►  December (2)
    • ►  November (7)
    • ►  October (7)
    • ►  September (2)
    • ►  March (5)
    • ►  February (3)
Awesome Inc. theme. Powered by Blogger.