Pre loader

ExportToFile() consumes all memory

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums


We create a surface in code and use ExportToFile() to embed it in a printable document.
All well and fast.

But, after changing region settings from en-us to de-de this Method takes ALL memory an the Machine and causes out of memory issues and virtually halts the machine.

We tried our code on different machines and the behavior was always the same.

Has anybody similar experiences? Or even a solution 🙂

Otto Gierling

  • You must to post comments
Good Answer

It was our code.
We use this line

internal static readonly double DefaultLandscapeWidth = (double)new LengthConverter().ConvertFrom("24.5cm");

using different CultureInfos this renders to

  • en-us 1851.9685039370077
  • de-de 18519.685039370077

the same for height…

So the image gets quite a bit larger then expected.

Thanks (sometimes it helps to formulate a problem to somebody not involved 😉

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies