Guest Gav F Posted December 8, 2022 Posted December 8, 2022 We have a C# application which is calling File.Delete() to delete a file in the user's %localappdata% folder. The application is occasionally hanging indefinitely on that line of code when deleting PDF files.Using Handle (by Microsoft), it shows that both the application and MsSense.exe have a (RWD) handle on that file.File.Delete() should throw an exception if the specified file is in use but it should never hang indefinitely.Here is the snippet of code from the application:try { // Log entry which appears File.Delete(fileName); // Log entry which does not appear } catch Continue reading... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.