User (Legacy) Posted November 24, 2005 Report Share Posted November 24, 2005 Hi, Our system sets chart type in Page_Load function. For all chart types we used until now it worked well. Now we trying to use Histogram type. Form contains histogram chart and submit button, which submits form and does nothing. After second time button is pressed, form crashes with message: [NullReferenceException: Object reference not set to an instance of an object.] SoftwareFX.ChartFX.Statistical.Server.BoxPlot.P(Int32 BH, GalleryAttribute BI, Int32 BJ, PaintMarkBase BK) SoftwareFX.ChartFX.Internet.Server.0S.DV(ChartCore 1KJ, IGalleryType 1KK) SoftwareFX.ChartFX.Internet.Server.ExtensionManager.IP(ChartCore 1XJ) SoftwareFX.ChartFX.Internet.Server.ChartCore.6R(Object 13L) SoftwareFX.ChartFX.Internet.Server.ChartCore.7H(IPersistBase 14P) SoftwareFX.ChartFX.Internet.Server.ChartCore.Import(FileFormat format, Stream stream) SoftwareFX.ChartFX.Internet.Server.ChartCore.Import(FileFormat format, String fileName) SoftwareFX.ChartFX.Internet.Server.Chart.LoadViewState(Object objState) System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +136 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +412 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +412 System.Web.UI.Page.LoadPageViewState() +306 System.Web.UI.Page.ProcessRequestMain() +447 If Visual Studio Designer is used for setting chart control type, then program does not crash (control creation code in InitializeComponent). How to make program work correctly with chart type set in Page_Load function? Code, used for chart type setting: this.statistics1.Chart = this.Chart1; this.statistics1.Gallery.Current = SoftwareFX.ChartFX.Statistical.Server.Galleries.Gallery.Histogram; Regards, Vita Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.