Hi,
I’m working on a feature for wpf application where there will be multiple tab controls and each tab control can be able to plot the graphs . So I have a usercontrol with scichartsurface which is bound to dataseries of type LineRenderableSeriesViewModel. User should be able to close all the tabs one by one. But when we are closing the last tab the application is getting crashed with no logs being caught at wpf level unhandled exception. But getting the below message while debugging, for –
Exception {“Attempted to read or write protected memory. This is often an indication that other memory is corrupt.”} System.AccessViolationException
The usage of the scichart is as follows:
this scichartsurface is being placed inside an usercontrol and the user control is used as template to document page for docking manager control
Package used for scichart:
SciChart3D-8.5.0.28148
SciChart.DirectX-8.5.0.28148
Any guidance on the correct disposal/teardown pattern for SciChart in a multi-tab scenario, or known workarounds for last-surface shutdown, would be greatly appreciated.
- Jitendra Dash asked 3 months ago
- last edited 3 months ago
- You must login to post comments
Hi Jitendra,
Thank you for contacting us.
Unfortunately, the mentioned code samples are missing from your message.
To display the code correctly, we recommend marking it as a ‘Code Sample’ with the corresponding button on the toolbar:

Regarding the reported AccessViolationException, it can be caused by various issues.
We would appreciate if you could prepare a small example project reproducing the reported behavior and share it with us for further investigation.
Thanks in advance,
Lex S., MSEE
SciChart Technical Support Engineer
- Lex answered 3 months ago
- last edited 3 months ago
- You must login to post comments
Please login first to submit.

