Jump to content
Software FX Community

Font dialog unhandled exception with the .NET control if the Cancel button or window X button (Close) is selected


DanielL_550

Recommended Posts

We get an unhandled exception with the .NET control if the Cancel button or window X button (Close) is selected on the Font dialog. Follow these steps to duplicate the problem.

1. Display the .NET Chart control.

2. Right click on the chart background.

3. Choose the Font selection from the menu.

4. Click the Cancel button or the window X button (Close) on the Font dialog.

The error dialog displays with the following

Microsoft .NET Framework

Unhandled exception has occurred in a component in your application. If you click Continue, the application will ignore this error and attempt to continue.

Parameter is not value.

The Details button shows this stack trace. 

 See the end of this message for details on invoking

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

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

System.ArgumentException: Parameter is not valid.

at System.Drawing.Graphics.MeasureString(String text, Font font, SizeF layoutArea, StringFormat stringFormat)

at System.Drawing.Graphics.MeasureString(String text, Font font, SizeF layoutArea)

at System.Drawing.Graphics.MeasureString(String text, Font font)

at ChartFX.NetIEClient.Internal.GraphicsEx.MeasureString(String s, Font font)

at ChartFX.NetIEClient.Title.a(IGraphicsEx A_0, Boolean A_1)

at ChartFX.NetIEClient.Title.a(IGraphicsEx A_0)

at ChartFX.NetIEClient.Axis.a(ScaleInfoBase A_0, IGraphicsEx A_1, Boolean A_2, Rectangle[] A_3)

at ChartFX.NetIEClient.Axis.a(ScaleInfoBase A_0, IGraphicsEx A_1)

at ChartFX.NetIEClient.Axis.a(ScaleInfoBase A_0, IGraphicsEx A_1, Rectangle& A_2, RepaintFlags A_3)

at ChartFX.NetIEClient.AxisCollection.a(ScaleInfoBase A_0, IGraphicsEx A_1, RepaintFlags A_2, Rectangle& A_3)

at ChartFX.NetIEClient.Pane.a(ScaleInfoBase A_0, IGraphicsEx A_1, RepaintFlags A_2, Rectangle& A_3)

at ChartFX.NetIEClient.PaneCollection.a(ScaleInfoBase A_0, IGraphicsEx A_1, RepaintFlags A_2, Rectangle& A_3)

at ChartFX.NetIEClient.a2.a(h A_0)

at ChartFX.NetIEClient.a2.a(Size& A_0, Size& A_1)

at ChartFX.NetIEClient.Chart.a(Size& A_0, Size& A_1)

at ChartFX.NetIEClient.DockableBar.a(BarLayoutEventArgs A_0, Size A_1)

at ChartFX.NetIEClient.DockableBar.a(BarLayoutEventArgs A_0)

at ChartFX.NetIEClient.Internal.DockableFrameCore.a(IGraphicsEx A_0, LayoutFlag A_1, Rectangle& A_2)

at ChartFX.NetIEClient.Internal.DockableFrameCore.RecalcLayout(IGraphicsEx gx, LayoutFlag flags)

at ChartFX.NetIEClient.Chart.a(IGraphicsEx A_0, Boolean A_1)

at ChartFX.NetIEClient.Chart.OnPaint(PaintEventArgs e)

at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)

at System.Windows.Forms.Control.WmPaint(Message& m)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ActiveXImpl.System.Windows.Forms.IWindowTarget.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.832 (QFE.050727-8300)

  CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

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

System

  Assembly Version: 2.0.0.0

  Win32 Version: 2.0.50727.832 (QFE.050727-8300)

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

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

ChartFX.NetIEClient

  Assembly Version: 7.0.2791.39835

  Win32 Version: n/a

  CodeBase: https://www.elynxtech.com/chartfx70/download/ChartFX.NetIEClient.dll

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

System.Windows.Forms

  Assembly Version: 2.0.0.0

  Win32 Version: 2.0.50727.832 (QFE.050727-8300)

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

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

ChartFX.NetIEClient.Base

  Assembly Version: 7.0.2791.39708

  Win32 Version: n/a

  CodeBase: https://www.elynxtech.com/chartfx70/download/ChartFX.NetIEClient.Base.DLL

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

System.Drawing

  Assembly Version: 2.0.0.0

  Win32 Version: 2.0.50727.832 (QFE.050727-8300)

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

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

Accessibility

  Assembly Version: 2.0.0.0

  Win32 Version: 2.0.50727.42 (RTM.050727-4200)

  CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

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

ChartFX.NetIEClient.Adornments

  Assembly Version: 7.0.2791.39731

  Win32 Version: n/a

  CodeBase: https://www.elynxtech.com/chartfx70/download/ChartFX.NetIEClient.Adornments.DLL

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

Microsoft.mshtml

  Assembly Version: 7.0.3300.0

  Win32 Version: 7.0.3300.0

  CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll

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

System.Configuration

  Assembly Version: 2.0.0.0

  Win32 Version: 2.0.50727.832 (QFE.050727-8300)

  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.832 (QFE.050727-8300)

  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.

Thank you.

 

Link to comment
Share on other sites

Also, it seems that this unhandled exception only happens when you follow the steps you mentioned without changing the font settings. Once the settings are changed, the exception is no longer thrown. In any case, I reported this to our development team and once a fix is available it will be on the next service pack or in the form of a hotfix.

Link to comment
Share on other sites

  • 3 months later...
  • 5 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...