System.AccessViolationException when user create new chart
Posted: Wed Nov 25, 2015 1:27 pm
Hello there,
in my application the user can create a new chart via drag & drop.
So in this process a new chart usercontrol will be created via code. After that i'm setting some property defaults.
This works quite well, but sometimes there appears an exception in the following line of code:
Chart.ViewXY.LegendBox.Visible = true;
"An unhandled exception of type 'System.AccessViolationException' occurred in Arction.Direct3D9.dll"
Additional information: An attempt was made to read the protected memory or write. This is often an indication that other memory is corrupt.
Do you have any idea why this might be?
The exception does not appear, when I comment out this codeline.
Many thanks
Igor
in my application the user can create a new chart via drag & drop.
So in this process a new chart usercontrol will be created via code. After that i'm setting some property defaults.
This works quite well, but sometimes there appears an exception in the following line of code:
Chart.ViewXY.LegendBox.Visible = true;
"An unhandled exception of type 'System.AccessViolationException' occurred in Arction.Direct3D9.dll"
Additional information: An attempt was made to read the protected memory or write. This is often an indication that other memory is corrupt.
Do you have any idea why this might be?
The exception does not appear, when I comment out this codeline.
Many thanks
Igor