Profile Picture

Null Reference exception after in Chart control after updgrade to 15.2

Posted By Niranjan Singh 8 Years Ago

Null Reference exception after in Chart control after updgrade to 15.2...

Author
Message
Niranjan Singh
Problem Posted 8 Years Ago
View Quick Profile
Forum Member

Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)

Group: Forum Members
Last Active: 4 Years Ago
Posts: 49, Visits: 179
Hi,
After unloading the current control which contains the Chart controls in user controls we are getting an exception which states that there was some callback which found some object null. The big issue is that this exception was not handled with at the control causing application to crash.

See below screen shot that may help to identity the issue.  https://www.nevron.com/forum/uploads/images/d1ccfb4f-d21a-4bdc-99dc-495a.png

Thanks,
Niranjan



Tags
Nevron Support
This post has been flagged as an answer
Posted 8 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3,039, Visits: 3,746
Hi Niranjan,

The form also contains the chart command bars - you need to disconnect the NChartCommandBarsManager from the chart control before unloading it:
NChartCommandBarsManager1.ChartControl = null;



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic