AutoHotkey process cannot access file bug

Issue #215 resolved
Jason Carr repo owner created an issue

LaunchBox Version 5.5 Operating System Windows 10 Operating System Architecture 64-bit Times Occurred A Few Times Issue/Error: System.IO.IOException: The process cannot access the file 'C:UsersJohnAppDataLocalTempAutoHotkey.Interopx64AutoHotkey.dll' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at AutoHotkey.Interop.Util.ExtractEmbededResourceToFile(Assembly assembly, String embededResourcePath, String targetFileName) at AutoHotkey.Interop.Util.<>c__DisplayClass6_0.<LoadAutoHotKeyDll>b__0(String relativePath) at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() at AutoHotkey.Interop.AutoHotkeyEngine..ctor() at LaunchBox.AutoHotkey.RunControllerOnly() at LaunchBox.Forms.MainForm.MainForm_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at LaunchBox.Forms.CustomFormBase.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

What were you trying to do at the time of the error? Open Big Box from short cut in Start Menu. Using Xbox 360 wireless controller, hit back button and select Switch to Desktop Mode. Error pops up immediately after.

Are you able to reproduce this issue? Yes. After receiving error, close and exit Launch Box. Open Big Box from short cut in Start Menu. Using Xbox 360 wireless controller, hit back button and select Switch to Desktop Mode. Error pops up immediately after.

LaunchBox Error: System.IO.IOException: The process cannot access the file 'C:\Users\John\AppData\Local\Temp\AutoHotkey.Interop\x64\AutoHotkey.dll' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at AutoHotkey.Interop.Util.ExtractEmbededResourceToFile(Assembly assembly, String embededResourcePath, String targetFileName) at AutoHotkey.Interop.Util.<>c__DisplayClass6_0.<LoadAutoHotKeyDll>b__0(String relativePath) at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() at AutoHotkey.Interop.AutoHotkeyEngine..ctor() at LaunchBox.AutoHotkey.RunControllerOnly() at LaunchBox.Forms.MainForm.MainForm_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at LaunchBox.Forms.CustomFormBase.Wn

Comments (3)

  1. Log in to comment