Jump to content
Software FX Community

OutOfMemoryException when using XYPlot


User (Legacy)

Recommended Posts

Hi

I was trying to use XYPlot where the points where located far from x=0. For

example

****************************************

private void Page_Load(object sender, System.EventArgs e)

{

Chart1.OpenData(SoftwareFX.ChartFX.COD.Values, 1, 1000);

Chart1.OpenData(SoftwareFX.ChartFX.COD.XValues, 1, 1000);

for (int j = 0; j < 1000; j++)

{

Chart1.Value[0, j] = j;

Chart1.XValue[0, j] = 100000 + j;

}

Chart1.CloseData(SoftwareFX.ChartFX.COD.Values);

Chart1.CloseData(SoftwareFX.ChartFX.COD.XValues);

}

****************************************

When I open the page in InternetExplorer and place my mouse over the ChartFx

object I get an OutOfMemoryException with the following details

****************************************

See the end of this message for details on invoking

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

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

System.OutOfMemoryException: Out of memory.

at System.Drawing.Graphics.DrawCurve(Pen pen, Point[] points, Int32 offset,

Int32 numberOfSegments, Single tension)

at SoftwareFX.ChartFX.Internet.Base.GraphicsEx.DrawCurve(Pen pen, Point[]

pt, Int32 nStart, Int32 nCount, Single fTension)

at SoftwareFX.ChartFX.Internet.Client.GalleryObj.Curve.2J(PaintMarkBase 0L5,

Int32 0L6, Int32 0L7, Int32 0L8, Int32 0L9)

at SoftwareFX.ChartFX.Internet.Client.GalleryObj.Curve.2J(PaintMarkBase 0L5,

Int32 0L6, Int32 0L7, Int32 0L8, Int32 0L9)

at SoftwareFX.ChartFX.Internet.Client.GalleryObj.Curve.2L(PaintMarkBase 0LE)

at SoftwareFX.ChartFX.Internet.Client.GalleryObj.Curve.2C(Int32 0L0,

PaintMarkBase 0L1, Int32& 0L2, Int32& 0L3)

at SoftwareFX.ChartFX.Internet.Client.18.I9(Int32& 1O3, Int32& 1O4)

at SoftwareFX.ChartFX.Internet.Client.0Y.GK(18 1IL, Boolean 1IM, Int32 1IN,

Int32 1IO, Point& 1IP, Object& 1IQ)

at SoftwareFX.ChartFX.Internet.Client.0Y.GL(Int32 1IR, Int32 1IS, Object&

1IT)

at SoftwareFX.ChartFX.Internet.Client.0Y.60(Point 1HV, String& 1HW)

at SoftwareFX.ChartFX.Internet.Client.P.6U(Object 0WJ, EventArgs 0WK)

at System.Windows.Forms.Timer.OnTick(EventArgs e)

at System.Windows.Forms.Timer.Callback(IntPtr hWnd, Int32 msg, IntPtr

idEvent, IntPtr dwTime)

************** Loaded Assemblies **************

mscorlib

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase: file:///c:/winnt/microsoft.net/framework/v1.0.3705/mscorlib.dll

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

System

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase:

file:///c:/winnt/assembly/gac/system/1.0.3300.0__b77a5c561934e089/system.dll

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

System.Drawing

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase:

file:///c:/winnt/assembly/gac/system.drawing/1.0.3300.0__b03f5f7f11d50a3a/sy

stem.drawing.dll

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

RegexAssembly12_0

Assembly Version: 0.0.0.0

Win32 Version: n/a

CodeBase:

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

ChartFX.Internet.Client

Assembly Version: 6.0.1180.31532

Win32 Version: n/a

CodeBase: http://localhost/ChartFX6/Download/ChartFX.Internet.Client.dll

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

System.Windows.Forms

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase:

file:///c:/winnt/assembly/gac/system.windows.forms/1.0.3300.0__b77a5c561934e

089/system.windows.forms.dll

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

ChartFX.Internet.Base

Assembly Version: 6.0.1180.31510

Win32 Version: n/a

CodeBase: http://localhost/ChartFX6/Download/ChartFX.Internet.Base.DLL

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

Accessibility

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.0

CodeBase:

file:///c:/winnt/assembly/gac/accessibility/1.0.3300.0__b03f5f7f11d50a3a/acc

essibility.dll

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

System.Xml

Assembly Version: 1.0.3300.0

Win32 Version: 1.0.3705.288

CodeBase:

file:///c:/winnt/assembly/gac/system.xml/1.0.3300.0__b77a5c561934e089/system

.xml.dll

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

************** JIT Debugging **************

To enable just in time (JIT) debugging, the config file for this

application or machine (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 machine

rather than being handled by this dialog.

****************************************

Can someone help?

Thanks.

Link to comment
Share on other sites

Hi,

Thank you for all the details on how to reproduce this problem. We were able

to reproduce it and we are currently working on a fix. Look in our support

site in a few days for news on service packs including this fix.

Notice that the bug occurs when using X/Y curve charts and the points are

very close together in the X-Axis making some point to actually be in the

same X-Pixel as the next one.

--

FP

Software FX, Inc.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...