Jump to content
  • 0

Unhandled exception when launching successively


Question

Posted

Launcher/pack Version: Launcher EXE 1.0.1.1

Operating System: Windows 7 64 bit

Version of Java: 1.7.0_03-b05

Description of Problem:

If I execute the launcher while a copy is already running, I get the following unhandled exception in the second instance.

This happens if I launch it quickly twice in a row, if I wait for the launcher to reach the login screen, or if I boot all the way into the technic pack.

Now this isn't inhibiting me from playing or anything, but unhandled exceptions are never good so I brought it up.

Wrap all your IO operations in try...catch!

Error Messages:

See the end of this message for details on invoking 

just-in-time (JIT) debugging instead of this dialog box.



************** Exception Text **************

System.IO.IOException: The process cannot access the file 'C:\Users\Aaron\AppData\Roaming\.techniclauncher\technic-launcher.jar' 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)

  at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)

  at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)

  at TechnicLauncher.Form1.DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e)





************** Loaded Assemblies **************

mscorlib

  Assembly Version: 2.0.0.0

  Win32 Version: 2.0.50727.5448 (Win7SP1GDR.050727-5400)

  CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll

----------------------------------------

TechnicLauncher

  Assembly Version: 1.0.1.0

  Win32 Version: 1.0.1.0

  CodeBase: file:///C:/Users/Aaron/Desktop/TechnicLauncher.exe

----------------------------------------

System.Windows.Forms

  Assembly Version: 2.0.0.0

  Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)

  CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System

  Assembly Version: 2.0.0.0

  Win32 Version: 2.0.50727.5453 (Win7SP1GDR.050727-5400)

  CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Drawing

  Assembly Version: 2.0.0.0

  Win32 Version: 2.0.50727.5458 (Win7SP1GDR.050727-5400)

  CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

System.Configuration

  Assembly Version: 2.0.0.0

  Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

  CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

System.Xml

  Assembly Version: 2.0.0.0

  Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

  CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------



************** JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this

application or computer (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.



For example:



<configuration>

  <system.windows.forms jitDebugging="true" />

</configuration>



When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the computer

rather than be handled by this dialog box.

Link to pastebin of log: N/A (the new instance doesn't start a log as far as I can tell)

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...