Portfolio Backtester throws exception on startup

Questions about MultiCharts .NET and user contributed studies.
hairyMug
Posts: 57
Joined: 03 Feb 2014
Has thanked: 5 times
Been thanked: 6 times

Portfolio Backtester throws exception on startup

Postby hairyMug » 08 Mar 2014

when starting the portfolio backtester application, an exception is thrown with the following content:

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

************** Exception Text **************
System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawRectangle(Pen pen, Int32 x, Int32 y, Int32 width, Int32 height)
at WeifenLuo.WinFormsUI.Docking.DockWindow.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.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
----------------------------------------
MCPortfolio
Assembly Version: 1.0.0.0
Win32 Version: 1.0.8595.400
CodeBase: file:///D:/Program%20Files/TS%20Support/MultiCharts%20.NET64/MCPortfolio.exe
----------------------------------------
BugSlayerNETClient
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.1
CodeBase: file:///D:/Program%20Files/TS%20Support/MultiCharts%20.NET64/BugSlayerNETClient.DLL
----------------------------------------
msvcm90
Assembly Version: 9.0.30729.6161
Win32 Version: 9.00.30729.6161
CodeBase: file:///C:/Windows/WinSxS/amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_08e61857a83bc251/msvcm90.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
----------------------------------------
PortfolioManagerAdapter
Assembly Version: 1.0.0.1
Win32 Version: 1.0.8595.400
CodeBase: file:///D:/Program%20Files/TS%20Support/MultiCharts%20.NET64/PortfolioManagerAdapter.DLL
----------------------------------------
PortfolioCommon
Assembly Version: 1.0.0.1
Win32 Version: 1.0.8595.400
CodeBase: file:///D:/Program%20Files/TS%20Support/MultiCharts%20.NET64/PortfolioCommon.DLL
----------------------------------------
ProductPathInfo
Assembly Version: 1.0.0.1
Win32 Version: 1.0.0.1
CodeBase: file:///D:/Program%20Files/TS%20Support/MultiCharts%20.NET64/ProductPathInfo.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
----------------------------------------
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
----------------------------------------
PLStudiesProxy
Assembly Version: 0.0.0.0
Win32 Version: 1.0.8595.400
CodeBase: file:///D:/Program%20Files/TS%20Support/MultiCharts%20.NET64/PLStudiesProxy.DLL
----------------------------------------
PLStudyManager
Assembly Version: 1.0.0.0
Win32 Version: 1.0.8595.400
CodeBase: file:///D:/Program%20Files/TS%20Support/MultiCharts%20.NET64/PLStudyManager.DLL
----------------------------------------
PLCommon
Assembly Version: 1.2.0.0
Win32 Version: 1.2.8595.400
CodeBase: file:///D:/Program%20Files/TS%20Support/MultiCharts%20.NET64/PLCommon.DLL
----------------------------------------
AciveObject
Assembly Version: 1.0.0.1
Win32 Version: 1.0.0.1
CodeBase: file:///D:/Program%20Files/TS%20Support/MultiCharts%20.NET64/AciveObject.DLL
----------------------------------------
System.Runtime.Remoting
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.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
StudyServerCore
Assembly Version: 1.0.0.0
Win32 Version: 1.0.8595.400
CodeBase: file:///D:/Program%20Files/TS%20Support/MultiCharts%20.NET64/StudyServerCore.DLL
----------------------------------------
PLTypes
Assembly Version: 3.0.0.0
Win32 Version: 3.0.8595.400
CodeBase: file:///D:/Program%20Files/TS%20Support/MultiCharts%20.NET64/PLTypes.DLL
----------------------------------------
WeifenLuo.WinFormsUI.Docking
Assembly Version: 2.2.5129.21318
Win32 Version: 2.2.0.0
CodeBase: file:///D:/Program%20Files/TS%20Support/MultiCharts%20.NET64/WeifenLuo.WinFormsUI.Docking.DLL
----------------------------------------
System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18446 built by: FX451RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
System.Core
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.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
SourceGrid
Assembly Version: 4.12.0.0
Win32 Version: 4.12.0.0
CodeBase: file:///D:/Program%20Files/TS%20Support/MultiCharts%20.NET64/SourceGrid.DLL
----------------------------------------
Aga.Controls
Assembly Version: 1.6.1.0
Win32 Version: 1.6.1.0
CodeBase: file:///D:/Program%20Files/TS%20Support/MultiCharts%20.NET64/Aga.Controls.DLL
----------------------------------------
DevAge.Windows.Forms
Assembly Version: 4.10.2845.21698
Win32 Version: 4.10.2845.21698
CodeBase: file:///D:/Program%20Files/TS%20Support/MultiCharts%20.NET64/DevAge.Windows.Forms.DLL
----------------------------------------
DevAge.Core
Assembly Version: 4.10.2845.21697
Win32 Version: 4.10.2845.21697
CodeBase: file:///D:/Program%20Files/TS%20Support/MultiCharts%20.NET64/DevAge.Core.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
----------------------------------------

************** 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.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Portfolio Backtester throws exception on startup

Postby Henry MultiСharts » 11 Mar 2014

Hello hairyMug,

It looks like there is something wrong with your system. A simple operation of drawing a rectangle is failing. Please try using MultiCharts on a different/clean system.


Return to “MultiCharts .NET”