meta4897 / gtaivtools

Automatically exported from code.google.com/p/gtaivtools
GNU General Public License v3.0
0 stars 0 forks source link

Unhandled Exception, after user cancels the launch of an executable file #22

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1) Open SparkIV
2) Click GTA IV icon
3) Double click launchGTAIV.exe or any other executable file.
4) Cancel the "Open File - Security Warning" Dialog
5) Crash.

The expected output is a smooth transition back to SparkIV

instead: Crash dialog

Using: SparkIV 0.7.0b1 Win7

Crash Output contains: 

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ComponentModel.Win32Exception: The operation was canceled by the user
   at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at SparkIV.Editor.ExternalEditor.LaunchEditor(FileSystem fs, File file)
   at SparkIV.Editor.Editors.LaunchEditor(FileSystem fs, File file)
   at SparkIV.MainForm.EditFile(File file)
   at SparkIV.MainForm.PreviewOrEditFile(File file)
   at SparkIV.MainForm.lvFiles_MouseDoubleClick(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Control.OnMouseDoubleClick(MouseEventArgs e)
   at System.Windows.Forms.ListView.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
SparkIV
    Assembly Version: 0.6.9.0
    Win32 Version: 0.6.9.0
    CodeBase: file:///C:/Users/Anolis/AppData/Local/Temp/Rar$EXa0.263/SparkIV.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.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.5420 (Win7SP1.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.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
RageLib.FileSystem
    Assembly Version: 0.6.2.0
    Win32 Version: 0.6.2.0
    CodeBase: file:///C:/Users/***/AppData/Local/Temp/Rar$EXa0.263/RageLib.FileSystem.DLL
----------------------------------------
RageLib.Common
    Assembly Version: 0.6.2.0
    Win32 Version: 0.6.2.0
    CodeBase: file:///C:/Users/***/AppData/Local/Temp/Rar$EXa0.263/RageLib.Common.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
----------------------------------------
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
----------------------------------------
z4q30etz
    Assembly Version: 0.6.9.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.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.

It appears that class SparkIV.Editor.ExternalEditor.LaunchEditor is at fault 
when returning from the run dialog

Original issue reported on code.google.com by anolispo...@gmail.com on 5 Jun 2013 at 4:07