User (Legacy) Posted February 25, 2004 Report Share Posted February 25, 2004 I am using a chart inside a panel which is inside a user control. I've been using the user control for several weeks with no problems. Today, I when to change the position of the chart within the user control. (I also may have changed the Gap property prior to that). As I started to drag the chart, the chart was replaced with a red bordered rectangle containing the following exception message: System.NullReferenceException: Object reference not set to an instance of an object at SoftwareFX.ChartFX.1L.K1(PaintInfo& 1UG, Rectangle& 1UH, IAdornment 1UI, Color 1UJ) at ... skip a few, I am manually typing these in ... System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs) ... there seems to be more,but they are cut off by the red border. Any ideas what's causing this or how to debug? Thanks, Mitch Link to comment Share on other sites More sharing options...
User (Legacy) Posted February 26, 2004 Author Report Share Posted February 26, 2004 Nevermind, I downloaded the latest version from your website and everything work OK again. I'm not sure how I could have gotten a mismatch, but at least I know how to fix it. Thanks "Mitch" <xxxxx@avantium.com> wrote in message news:TRYsXd8%23DHA.196@webserver3.softwarefx.com... > I am using a chart inside a panel which is inside a user control. I've been > using the user control for several weeks with no problems. Today, I when to > change the position of the chart within the user control. (I also may have > changed the Gap property prior to that). As I started to drag the chart, the > chart was replaced with a red bordered rectangle containing the following > exception message: > > System.NullReferenceException: Object reference not set to an instance of an > object at > SoftwareFX.ChartFX.1L.K1(PaintInfo& 1UG, Rectangle& 1UH, IAdornment 1UI, > Color 1UJ) > at > ... skip a few, I am manually typing these in ... > System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 > layer, Boolean disposeEventArgs) > ... > there seems to be more,but they are cut off by the red border. > > Any ideas what's causing this or how to debug? > > Thanks, > Mitch > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.