Issue switching to Big Box mode when operation was in progress

Issue #391 resolved
Former user created an issue

I was doing a ROM import task, and tried to switch to Big Box Mode. I received a warning dialog asking me if I wanted to continue as an operation was in progress and would be cancelled. I tried to stop, though I can't remember if I hit Yes or No. Launchbox went into Big Box Mode and when I tried to launch a game, an error was encountered with regards to an AutoHotKey DLL. The following error was shown when I exited out of Big Box Mode...

System.IO.IOException: The process cannot access the file 'C:\Users\user\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.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Comments (3)

  1. Martin Alejandro Liguori

    When you switch to bigbox you shut down launchbox and stop everything it was doing, including the downloads. Maybe there should be an option to continue a download when launchbox crashes?

  2. Jason Carr repo owner

    Ah, interesting. Thanks for the report. I'm thinking we should probably just disable that option while an operation is in process. Unfortunately continuing a process later on would require some significant work, so we probably won't tackle that one at least for now. Feel free to add a separate ticket for it though.

  3. Log in to comment