SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
I am showing a dialog window with a ChartSurface in it. I have a context menu option to export to an image, and on window load I export to an XPS file. The dialog works fine if I do not use either feature, but once I do, I intermittently get an exception when showing the dialog. It appears to regularly take 3 instances of the dialog after the export feature is used to throw the exception, and the exception gets thrown twice the first time, threes times the second time, and so on. Again, if I do not use the export feature (no call to ExportToFile), I do not get any exceptions no matter how many times I show the dialog.
The exception message is “The provided DependencyObject is not a context for this Freezable. Parameter name: context”.
There are no other useful details in the exception from what I can see. Its all pretty abstract WPF stuff. The exported file/image seem to be generated accurately regardless of the exception.
I am using SciChart 126.96.36.19924, Visual Studio 2017 Professional, C#, WPF
I am fairly sure that this issue has been fixed in version 5.x of SciChart. However, I cannot tell for sure unless you test it.
Diagnosing complex bug reports like this requires three things: (see our Support Policy)
1.) That you are using the latest version of SciChart
2.) That your support is not expired (it shows as expired on our system)
3.) That you have provide a code sample such as a Visual Studio project to reproduce to the problem
Can you try out v5.x on the same code and see if it works? If YES then your solution is to upgrade. If NO then provide a code sample, and we will investigate, however, we won’t provide the fix to you with an expired support subscription.
Finally if our system is incorrect (you have a valid license) let me know and we will update.
Please login first to submit.