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
System.AccessViolationException when user create new chart
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: System.AccessViolationException when user create new cha
Sounds like a threading problem. Do you use background threads in the app?
Can you send a small VS project to our support by e-mail, to be able to reproduce the problem?
Can you send a small VS project to our support by e-mail, to be able to reproduce the problem?
LightningChart Support Team, PT
Re: System.AccessViolationException when user create new cha
for drag and drop i use the LayoutControl from DevExpress.
Can I use the DevExpress Controls in my example project? Are you able to run the project?
Can I use the DevExpress Controls in my example project? Are you able to run the project?
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: System.AccessViolationException when user create new cha
Please strip out all other 3rd party components, such as DevExpress.
LightningChart Support Team, PT
Re: System.AccessViolationException when user create new cha
i couldn't reproduce this problem in a sample project so far.
i'll let you know as soon as i have found out something new.
thank you so far
i'll let you know as soon as i have found out something new.
thank you so far
Re: System.AccessViolationException when user create new cha
i have solved my problem.
it was indeed a threading problem in combination with to many EndUpdate() and not enough BeginUpdate()-calls.
thanks for the hint
it was indeed a threading problem in combination with to many EndUpdate() and not enough BeginUpdate()-calls.
thanks for the hint