User (Legacy) Posted December 15, 2002 Report Share Posted December 15, 2002 I'm experiencing the following OutOfMemoryException when resizing my Pie chart. ************** Exception Text ************** System.OutOfMemoryException: Out of memory. at System.Drawing.Graphics.DrawArc(Pen pen, Single x, Single y, Single width, Single height, Single startAngle, Single sweepAngle) at SoftwareFX.ChartFX.Base.GraphicsEx.DrawArc(Pen pen, Int32 x, Int32 y, Int32 w, Int32 h, Double dStartAngle, Double dSweepAngle) at SoftwareFX.ChartFX.0T.GL(IGraphicsEx 1IM, Rectangle& 1IN, Double 1IO, Double 1IP, Pen 1IQ, Brush 1IR, Flag3D 1IS, Rectangle& 1IT) at SoftwareFX.ChartFX.0T.PieSlice(IGraphicsEx gx, Rectangle& r, Double dStartAngle, Double dSweepAngle, Brush brush, Pen pen, Flag3D flag3D, Int32 nThick, Rectangle& rHole, Boolean bSides, Boolean b2DShadows) at SoftwareFX.ChartFX.GalleryObj.Pie.2A(Int32 0M1, PaintMarkBase 0M2, Int32& 0M3, Int32& 0M4) at SoftwareFX.ChartFX.10.HW(IGraphicsEx 1M0, LabelList 1M1) at SoftwareFX.ChartFX.Chart.DL(10 1AX, IGraphicsEx 1AY, Rectangle& 1AZ, Int32& 1B0) at SoftwareFX.ChartFX.Chart.DK(PaintBar 1AU, IGraphicsEx 1AV, Rectangle& 1AW) at SoftwareFX.ChartFX.0Q.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.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) My pie chart slices are as follows, note the slices that claim to be 0% of the pie. . Field1 173627 1% Field2 195856 1% Field3 2674 0% Field4 5330 0% Field5 652515 4% Field6 132985 1% Field7 13401456 75% Field8 3159750 18% Field9 7193 0% Field10 2337 0% Field11 5402 0% Link to comment Share on other sites More sharing options...
Software FX Posted December 16, 2002 Report Share Posted December 16, 2002 We are unable to reproduce this problem, I'm running with the latest service pack, a default Pie chart with11 points and the same data you posted, I resize the chart back and forth (I have it anchored to the form) and nothing happens. Are you using the latest service pack ? If so, we are going to need more details about your chart, maybe it has to do with some specific setting you are using, a sample project that reproduces the problem would be ideal. -- FP Software FX Support "Jason DeBettencourt" <jasond@yahoo.com> wrote in message news:ThUsvVLpCHA.2684@webserver1.softwarefx.com... > I'm experiencing the following OutOfMemoryException when resizing my Pie > chart. > > ************** Exception Text ************** > System.OutOfMemoryException: Out of memory. > at System.Drawing.Graphics.DrawArc(Pen pen, Single x, Single y, Single > width, Single height, Single startAngle, Single sweepAngle) > at SoftwareFX.ChartFX.Base.GraphicsEx.DrawArc(Pen pen, Int32 x, Int32 y, > Int32 w, Int32 h, Double dStartAngle, Double dSweepAngle) > at SoftwareFX.ChartFX.0T.GL(IGraphicsEx 1IM, Rectangle& 1IN, Double 1IO, > Double 1IP, Pen 1IQ, Brush 1IR, Flag3D 1IS, Rectangle& 1IT) > at SoftwareFX.ChartFX.0T.PieSlice(IGraphicsEx gx, Rectangle& r, Double > dStartAngle, Double dSweepAngle, Brush brush, Pen pen, Flag3D flag3D, Int32 > nThick, Rectangle& rHole, Boolean bSides, Boolean b2DShadows) > at SoftwareFX.ChartFX.GalleryObj.Pie.2A(Int32 0M1, PaintMarkBase 0M2, > Int32& > 0M3, Int32& 0M4) > at SoftwareFX.ChartFX.10.HW(IGraphicsEx 1M0, LabelList 1M1) > at SoftwareFX.ChartFX.Chart.DL(10 1AX, IGraphicsEx 1AY, Rectangle& 1AZ, > Int32& 1B0) > at SoftwareFX.ChartFX.Chart.DK(PaintBar 1AU, IGraphicsEx 1AV, Rectangle& > 1AW) > at SoftwareFX.ChartFX.0Q.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.ControlNativeWindow.OnMessage(Message& m) > at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) > at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, > IntPtr > wparam, IntPtr lparam) > > My pie chart slices are as follows, note the slices that claim to be 0% of > the pie. > . > Field1 173627 1% > Field2 195856 1% > Field3 2674 0% > Field4 5330 0% > Field5 652515 4% > Field6 132985 1% > Field7 13401456 75% > Field8 3159750 18% > Field9 7193 0% > Field10 2337 0% > Field11 5402 0% > > > Link to comment Share on other sites More sharing options...
PayalAgrawal Posted January 17, 2017 Report Share Posted January 17, 2017 Hi, I am facing same issue when I minimize my screen. Pie chart is working fine when my screen is in maximize mode . All the parameters are clickable. But , when I minimize my screen and view my parameters in bottom like I have shown in attachments, it gives out of memory exception. Do you get any fix for the issue you have reported? Thanks Link to comment Share on other sites More sharing options...
AngelR Posted January 17, 2017 Report Share Posted January 17, 2017 We need more information to reproduce this issue. What version of Chart FX are you currently using? Is this a Web Forms or Win forms app? Having a repro-case is the most effective and fastest way to identify the cause of an issue . If you need to report an unexpected behavior, please include a small sample application or snippet and make sure it fulfills the following conditions: - The code must be narrowed down to the simplest reproducible test case. - External references and code not related to Chart FX must be removed. - It has to include only the lines reproducing the issue. Other code not related to the problem must be removed. - The sample must compile. This means we should be able to run the sample without getting any errors. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.