ArgumentException


Author
Message
Sachin Karadgi
Sachin Karadgi
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)
Group: Forum Members
Posts: 4, Visits: 1

Hello,

 

I am using Nevron charts (Nevron 2009 Vol 1 VS2008) in my application.  Nowadays the application crashes due to “ArgumentException”. I tried to handle the exception in my code (i.e. catch(ArgumentException)), but unsuccessful.

 

Following are the additional information about the exception:

 

DATA: {System.Collections.ListDictionaryInternal}

MESSAGE: Parameter is not valid.

STACK TRACE:

  at System.Drawing.Graphics.get_PageUnit()

   at Nevron.GraphicsCore.lII11llI1.Attach(Graphics graphics, NResolution resolution)

   at Nevron.GraphicsCore.N2DDeviceGDI.Attach(Graphics graphics, NResolution resolution)

   at Nevron.GraphicsGL.GLBitmapRenderSurface.Activate()

   at Nevron.GraphicsGL.l1lIlI1Ill.l11lll1(Boolean l1I11l1l1l)

   at Nevron.GraphicsGL.l1lIlI1Ill.ClearDeviceSpecificResources()

   at Nevron.GraphicsGL.l1lIlI1Ill.Dispose()

   at Nevron.Chart.NChartRenderingContext3D.Dispose(Boolean disposing)

   at Nevron.Chart.NChartRenderingContext.Finalize()

 

Is there any solution, like need to upgrade to new version or ... ? Please do let me know.

 

Warm Regards,

Sachin


Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Sachin,

This problem is fixed in later versions of the control. You can try to call the Dispose method of the control explicitly to workaround the problem.



Best Regards,
Nevron Support Team


soundara lakshmi
soundara lakshmi
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)
Group: Forum Members
Posts: 6, Visits: 1
Hi ,
I am soundara,
i am also getting same Argument Exception issue while running the project,
i am using Version Nevron 2009 for VS2008,



Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Soundard,

As stated above the problem has been resolved in later versions  of the control...



Best Regards,
Nevron Support Team


soundara lakshmi
soundara lakshmi
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)
Group: Forum Members
Posts: 6, Visits: 1
ChartRenderer.cs

namespace KLATencor.Charts
{
public abstract class ChartRenderer : IDisposable
{
public abstract ChartBase Chart
{
get;
set;
}

public ChartControlBase ChartControl
{
get { return this.Chart.MyControl; }
}

public abstract void Dispose();
}
}

SurfaceChartLegendRenderer.cs
public class SurfaceChartLegendRenderer : SurfaceChartRenderer, IChartClipboardable
{

this.ChartControl.MouseDown += new MouseEventHandler(ChartControl_MouseDown);


void ChartControl_MouseDown(object sender, MouseEventArgs e)
{
NHitTestResult hitTestResult = this.ChartControl.HitTest(e.X, e.Y);

if (e.Button == MouseButtons.Right &&
hitTestResult.Legend == this.Legend)
{
....// context menu for legend (Auto Scale/ Set Scale).
}
}
}

hi,
i am using above code to add the "Context Menu" to the Legend
it throwing exception in line NHitTestResult hitTestResult = this.ChartControl.HitTest(e.X, e.Y);

its working fine panel size is small ,
but i when expand the panel it could recognized the whether its legend/ chart

can you help in resolving the problem
Attachments
Nervon(DV).jpg (156 views, 43.00 KB)
soundara lakshmi
soundara lakshmi
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)
Group: Forum Members
Posts: 6, Visits: 1
hi,

please can you tell me a latest version of the control to resolve the above problem.

Thanks,
Soundara
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Soundara,

You can download 2012 Vol1 from our website - it should be fixing this issue...



Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search