Jump to content
Software FX Community

When running in .NET mode if I have a rotated 3D Chart and I select the button to go back to 2D mode, I get a System.OverflowException: Overflow error.


User (Legacy)

Recommended Posts

When  running in .NET mode if I have a rotated 3D Chart and I select the 

button to go back to 2D mode, I get a System.OverflowException: Overflow

error. This exception also happens intermittently when I am rotating the

chart. This does not always happen but it does happen frequently enough to

be a problem for our customers. Apparently the exception is not handled

properly by the ChartFX code when calling System.Drawing.Graphics.DrawLine

from ChartFX.NetIEClient.Internal.GraphicsEx.DrawLine. Do you know when this

will be fixed?

Thank you.

See the end of this message for details on invoking

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

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

System.OverflowException: Overflow error.

at System.Drawing.Graphics.CheckErrorStatus(Int32 status)

at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1, Int32

x2, Int32 y2)

at ChartFX.NetIEClient.Internal.GraphicsEx.DrawLine(Pen pen, Int32 x,

Int32 y, Int32 x2, Int32 y2)

at ChartFX.NetIEClient.Galleries.Line.a(PaintMarkBase A_0, Int32 A_1,

Int32 A_2, Int32 A_3, Int32 A_4)

at ChartFX.NetIEClient.Galleries.Line.b(PaintMarkBase A_0, Int32 A_1,

Int32 A_2, Int32 A_3, Int32 A_4)

at ChartFX.NetIEClient.Galleries.Line.a(Int32 A_0, PaintMarkBase A_1,

Int32& A_2, Int32& A_3)

at ChartFX.NetIEClient.h.a(Int32& A_0, Int32& A_1)

at ChartFX.NetIEClient.h.b(Int32& A_0, Int32& A_1)

at ChartFX.NetIEClient.h.t()

at ChartFX.NetIEClient.h.a(IFrame A_0, Int32& A_1)

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

at ChartFX.NetIEClient.ao.a(PaintEventArgs A_0)

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.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.42 (RTM.050727-4200)

CodeBase:

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

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

System

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.42 (RTM.050727-4200)

CodeBase:

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

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

ChartFX.NetIEClient

Assembly Version: 7.0.2540.35421

Win32 Version: n/a

CodeBase: http://localhost/chartfx70/download/ChartFX.NetIEClient.dll

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

System.Windows.Forms

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.42 (RTM.050727-4200)

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

Win32 Version: n/a

CodeBase:

http://localhost/chartfx70/download/ChartFX.NetIEClient.Base.DLL

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

System.Drawing

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.42 (RTM.050727-4200)

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

Win32 Version: n/a

CodeBase:

http://localhost/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.42 (RTM.050727-4200)

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.42 (RTM.050727-4200)

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 comment
Share on other sites

We noticed that when we usually get this error the Charts are not rendered 

correctly. See the attached BadChart.png and the GoodChart.png.

We have no idea what causes the charts to be corrupted when they are

rendered by the PSS service since we are using the exact same data, axes,

etc. If we close IE and rerun the chart sometimes it will be good and

sometimes it will be bad.

Thank you.

"Dan" <DanielL_550@hotmail.com> wrote in message

news:tRDP%23eDNHHA.3068@webserver3.softwarefx.com...

> When running in .NET mode if I have a rotated 3D Chart and I select the

> button to go back to 2D mode, I get a System.OverflowException: Overflow

> error. This exception also happens intermittently when I am rotating the

> chart. This does not always happen but it does happen frequently enough to

> be a problem for our customers. Apparently the exception is not handled

> properly by the ChartFX code when calling

> System.Drawing.Graphics.DrawLine

> from ChartFX.NetIEClient.Internal.GraphicsEx.DrawLine. Do you know when

> this

> will be fixed?

>

> Thank you.

>

>

> See the end of this message for details on invoking

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

>

> ************** Exception Text **************

> System.OverflowException: Overflow error.

> at System.Drawing.Graphics.CheckErrorStatus(Int32 status)

> at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1, Int32

> x2, Int32 y2)

> at ChartFX.NetIEClient.Internal.GraphicsEx.DrawLine(Pen pen, Int32 x,

> Int32 y, Int32 x2, Int32 y2)

> at ChartFX.NetIEClient.Galleries.Line.a(PaintMarkBase A_0, Int32 A_1,

> Int32 A_2, Int32 A_3, Int32 A_4)

> at ChartFX.NetIEClient.Galleries.Line.b(PaintMarkBase A_0, Int32 A_1,

> Int32 A_2, Int32 A_3, Int32 A_4)

> at ChartFX.NetIEClient.Galleries.Line.a(Int32 A_0, PaintMarkBase A_1,

> Int32& A_2, Int32& A_3)

> at ChartFX.NetIEClient.h.a(Int32& A_0, Int32& A_1)

> at ChartFX.NetIEClient.h.b(Int32& A_0, Int32& A_1)

> at ChartFX.NetIEClient.h.t()

> at ChartFX.NetIEClient.h.a(IFrame A_0, Int32& A_1)

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

> at ChartFX.NetIEClient.ao.a(PaintEventArgs A_0)

> 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.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.42 (RTM.050727-4200)

> CodeBase:

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

> ----------------------------------------

> System

> Assembly Version: 2.0.0.0

> Win32 Version: 2.0.50727.42 (RTM.050727-4200)

> CodeBase:

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

> ----------------------------------------

> ChartFX.NetIEClient

> Assembly Version: 7.0.2540.35421

> Win32 Version: n/a

> CodeBase: http://localhost/chartfx70/download/ChartFX.NetIEClient.dll

> ----------------------------------------

> System.Windows.Forms

> Assembly Version: 2.0.0.0

> Win32 Version: 2.0.50727.42 (RTM.050727-4200)

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

> Win32 Version: n/a

> CodeBase:

> http://localhost/chartfx70/download/ChartFX.NetIEClient.Base.DLL

> ----------------------------------------

> System.Drawing

> Assembly Version: 2.0.0.0

> Win32 Version: 2.0.50727.42 (RTM.050727-4200)

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

> Win32 Version: n/a

> CodeBase:

> http://localhost/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.42 (RTM.050727-4200)

> 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.42 (RTM.050727-4200)

> 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 comment
Share on other sites

The problem with the "bad" chart is that the Y-Axis is uninitialized.

When the problem occurs, please do a "View Source", look at the DataPath for

the chart <OBJECT> tag and retrieve that file using your browser (you can

copy the URL, paste it into IE´s address bar and prepend it with your site

name, you will be prompted by IE to save it).

Attach this binary file to your reply.

--

Francisco Padron

www.chartfx.com

Link to comment
Share on other sites

Francisco,

Thank you very much for your prompt reply. We really appreciate it.

I don´t see the <OBJECT> tag in the source since we are running the .NET

client. Our source contains this

<script

src="/chartfx70/pss/ChartFX.aspx?id=0-011013184&type=js&mime=application%2fx-javascript"></script>

<script>cfx_replace_TrendControl$_trendChart();</script>

If I put

"/chartfx70/pss/ChartFX.aspx?id=0-011013184&type=js&mime=application%2fx-javascript"

in the IE address bar I get an XML error but when I view the source it

contains this

function cfx_replace_TrendControl$_trendChart() {

document.write(´<object codetype="application/octet-stream"

id="_TrendControl$_trendChart"

classid="/chartfx70/download/ChartFX.NetIEClient.dll#ChartFX.NetIEClient.Chart"

standby="Downloading Chart FX control please wait ..." WIDTH="925px"

HEIGHT="600px" >´);

document.write(´<param name="Cookies"

value="QQBTAFAALgBOAEUAVABfAFMAZQBzAHMAaQBvAG4ASQBkAD0AeAAyADAAMQBjAHoANQA1AHkAMgB3AGQAbgBvADQANQB6AHIAMgByAGwAdwBiAGcAOwA="/>´);

document.write(´<param name="DataPath"

value="/chartfx70/pss/ChartFX.aspx?id=0-011013183&type=.net&mime=application%2foctet-stream"/>´);

document.write(´[Chart FX: .NET Active client requires Internet Explorer and

.NET Framework 2.0 or greater installed on the client computer.]´);

document.write(´</object>´);

}

If I put

"/chartfx70/download/ChartFX.NetIEClient.dll#ChartFX.NetIEClient.Chart" in

the IE address bar it downloads ChartFX.NetIEClient.dll. I tried to attach

the DLL to this eMail but I get an error saying the 1.29 Meg file is too

big. Do you have any suggestions?

I stepped through our source code when the problem happens and we are

initializing the left Y Axis and attaching 46 series items to it. Sometimes

the chart is corrupted and sometimes it isn´t.

Please let me know if you need additional information.

Thank you.

"Software FX" <noreply@softwarefx.com> wrote in message

news:Bt7KaAONHHA.3068@webserver3.softwarefx.com...

> The problem with the "bad" chart is that the Y-Axis is uninitialized.

>

> When the problem occurs, please do a "View Source", look at the DataPath

> for

> the chart <OBJECT> tag and retrieve that file using your browser (you can

> copy the URL, paste it into IE´s address bar and prepend it with your site

> name, you will be prompted by IE to save it).

>

> Attach this binary file to your reply.

>

> --

> Francisco Padron

> www.chartfx.com

>

>

Link to comment
Share on other sites

Sorry about that, I forgot about the AxCompat setting (read more here: 

http://support.softwarefx.com/ShowArticleSep.aspx?Type=KB&Product=CfxNet62&Source=http://support.softwarefx.com/kb/712/2/131.htm).

You are almost there. Inside the script is what you are looking for, in your

example is:

/chartfx70/pss/ChartFX.aspx?id=0-011013183&type=.net&mime=application%2foctet-stream

This is what you need to retrieve. This will vary from run-to-run so you

need to do it again in order to get the correct URL and this particular one

is probably already expired.

--

Francisco Padron

www.chartfx.com

Link to comment
Share on other sites

I am sorry about that. If I would have read the script I would have realized 

the value was what we needed not the URI to the classid. I could not get IE

to give me the option of downloading the file since it was trying to process

it as XML. I used FireFox to grab it. I have attached the file to this

eMail.

Thank you for your help.

"Software FX" <noreply@softwarefx.com> wrote in message

news:XNLSnGPNHHA.3068@webserver3.softwarefx.com...

> Sorry about that, I forgot about the AxCompat setting (read more here:

> http://support.softwarefx.com/ShowArticleSep.aspx?Type=KB&Product=CfxNet62&Source=http://support.softwarefx.com/kb/712/2/131.htm).

>

> You are almost there. Inside the script is what you are looking for, in

> your

> example is:

>

> /chartfx70/pss/ChartFX.aspx?id=0-011013183&type=.net&mime=application%2foctet-stream

>

> This is what you need to retrieve. This will vary from run-to-run so you

> need to do it again in order to get the correct URL and this particular

> one

> is probably already expired.

>

> --

> Francisco Padron

> www.chartfx.com

>

>

Link to comment
Share on other sites

Francisco,

I captured a good chart and a bad chart and attached them to this message. I

did a binary compare and there is only one area where the bytes are

different. I hope this helps you.

Thank you.

"Dan" <DanielL_550@hotmail.com> wrote in message

news:Y0TceQPNHHA.2556@webserver3.softwarefx.com...

>I am sorry about that. If I would have read the script I would have

>realized

> the value was what we needed not the URI to the classid. I could not get

> IE

> to give me the option of downloading the file since it was trying to

> process

> it as XML. I used FireFox to grab it. I have attached the file to this

> eMail.

>

> Thank you for your help.

>

>

> "Software FX" <noreply@softwarefx.com> wrote in message

> news:XNLSnGPNHHA.3068@webserver3.softwarefx.com...

>> Sorry about that, I forgot about the AxCompat setting (read more here:

>> http://support.softwarefx.com/ShowArticleSep.aspx?Type=KB&Product=CfxNet62&Source=http://support.softwarefx.com/kb/712/2/131.htm).

>>

>> You are almost there. Inside the script is what you are looking for, in

>> your

>> example is:

>>

>> /chartfx70/pss/ChartFX.aspx?id=0-011013183&type=.net&mime=application%2foctet-stream

>>

>> This is what you need to retrieve. This will vary from run-to-run so you

>> need to do it again in order to get the correct URL and this particular

>> one

>> is probably already expired.

>>

>> --

>> Francisco Padron

>> www.chartfx.com

>>

>>

>

>

>

Link to comment
Share on other sites

Francisco,

I think I figured out what is causing the bad chart. Our customer is not

specifying a title for the right Y-Axis. In this case, our code is setting

the right Y-Axis title to an empty string. If the customer navigates to this

page and this is the first chart they create, the problem occurs. If they

navigate to this page, chart something else that has a right Y-Axis title,

change their mind and then delete the Y-Axis title, the chart is displayed

correctly without the title for the right Y-Axis. We are still setting the

title to an empty string when they delete the title but apparently this

sequence initializes something that was not initialized before. What I don´t

understand is why this affects the left Y-Axis that does have a title and it

is the Axis that does not display.

I have done some initial tests and it appears that if we detect when the

string is empty and set it to 1 space, the problem with the chart does not

occur. I still need to perform extensive testing but it appears this is

working. We can implement this work around until a service pack corrects the

problem.

Thank you for all of your help. Without your instructions for saving the

binary export, I don´t know if I would have found what was causing this

issue. By performing a binary compare of the good and bad exports and

importing each of them while running under the debugger I was able to figure

out what was causing the problem.

"Dan" <DanielL_550@hotmail.com> wrote in message

news:b%23zoFpZNHHA.2624@webserver3.softwarefx.com...

> Francisco,

>

> I captured a good chart and a bad chart and attached them to this message.

> I did a binary compare and there is only one area where the bytes are

> different. I hope this helps you.

>

> Thank you.

>

>

> "Dan" <DanielL_550@hotmail.com> wrote in message

> news:Y0TceQPNHHA.2556@webserver3.softwarefx.com...

>>I am sorry about that. If I would have read the script I would have

>>realized

>> the value was what we needed not the URI to the classid. I could not get

>> IE

>> to give me the option of downloading the file since it was trying to

>> process

>> it as XML. I used FireFox to grab it. I have attached the file to this

>> eMail.

>>

>> Thank you for your help.

>>

>>

>> "Software FX" <noreply@softwarefx.com> wrote in message

>> news:XNLSnGPNHHA.3068@webserver3.softwarefx.com...

>>> Sorry about that, I forgot about the AxCompat setting (read more here:

>>> http://support.softwarefx.com/ShowArticleSep.aspx?Type=KB&Product=CfxNet62&Source=http://support.softwarefx.com/kb/712/2/131.htm).

>>>

>>> You are almost there. Inside the script is what you are looking for, in

>>> your

>>> example is:

>>>

>>> /chartfx70/pss/ChartFX.aspx?id=0-011013183&type=.net&mime=application%2foctet-stream

>>>

>>> This is what you need to retrieve. This will vary from run-to-run so you

>>> need to do it again in order to get the correct URL and this particular

>>> one

>>> is probably already expired.

>>>

>>> --

>>> Francisco Padron

>>> www.chartfx.com

>>>

>>>

>>

>>

>>

>

>

>

Attachments.zip

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...