1
Vote

Unhandled exception

description

An unhandled exception is generated when clicking the start button with a PostScript file open.

************** Exception Text **************
System.ArgumentException: An item with the same key has already been added.
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Ghostscript.NET.Viewer.GhostscriptViewerPsFormatHandler.OpenPsFile(String path)
at Ghostscript.NET.Viewer.GhostscriptViewer.Open()
at Ghostscript.Studio.Workspaces.Editor.FEditorWorkspace.Command_Start(Object sender, CommandEventArgs e)
at Ghostscript.Studio.Managers.EnvironmentManager.RunWorkspaceCommand(Object sender, CommandEventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18444 built by: FX451RTMGDR

CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

Ghostscript.Studio
Assembly Version: 1.0.3.0
Win32 Version: 1.0.3

CodeBase: file:///C:/Users/smcallister/Downloads/Ghostscript%20Studio/Ghostscript.Studio.exe

Ghostscript.NET
Assembly Version: 1.1.5.0
Win32 Version: 1.1.5

CodeBase: file:///C:/Users/smcallister/Downloads/Ghostscript%20Studio/Ghostscript.NET.DLL

ScintillaNET
Assembly Version: 2.5.2.0
Win32 Version: 2.5.2.0

CodeBase: file:///C:/Users/smcallister/Downloads/Ghostscript%20Studio/ScintillaNET.DLL

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

WeifenLuo.WinFormsUI.Docking
Assembly Version: 2.7.0.0
Win32 Version: 2.7.0.0

CodeBase: file:///C:/Users/smcallister/Downloads/Ghostscript%20Studio/WeifenLuo.WinFormsUI.Docking.DLL

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

comments

josip wrote Jun 26, 2014 at 4:24 PM

Hi,

Thanks for reporting this issue.
Can you please upload Postscript file you want to run and that throws this exception?

Thanks,
Josip