whut / jumplist-extender

Automatically exported from code.google.com/p/jumplist-extender
0 stars 0 forks source link

"AppSettings.xml" access denied? #46

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
HTH does this happen? It seems to happen when you loaded one program, but
you select another program through Select Window. I'm GUESSING that, since
this program change affects AppSettings.xml, then that's where the error
occurs?

Env64: True
EnvInstalled: True

AppName: Snipping Tool
AppPath: C:\windows\system32\mspaint.exe

System.IO.IOException: The process cannot access the file 'AppSettings.xml'
because it is being used by another process.
  at System.IO.Directory.DeleteHelper(String fullPath, String userPath,
Boolean recursive)
  at System.IO.Directory.Delete(String fullPath, String userPath, Boolean
recursive)
  at T7EPreferences.Preferences.LoadJumplistPack(String packFilename)
  at T7EPreferences.Primary.ImportPack(String appName, String packPath)
  at T7EPreferences.Primary.ShowStartDialog()
  at T7EPreferences.Program.Main()

Original issue reported on code.google.com by mar.mar...@gmail.com on 20 May 2010 at 7:24

GoogleCodeExporter commented 8 years ago
Learn to read: It was a problem with ImportPack() :) I put a Directory.Delete() 
in
the middle of a using{} block, WHILE the used file was in the directory I 
wanted to
delete!

Simple.

Original comment by mar.mar...@gmail.com on 22 May 2010 at 12:58