Null Reference exception after in Chart control after updgrade to 15.2


https://www.nevron.com/Forum/Topic9534.aspx
Print Topic | Close Window

By Niranjan Singh - 8 Years Ago
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

By Nevron Support - 8 Years Ago
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;