SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
I’ve programmed an interface with scichart 2D (Visual studio 2012)
when i run my program from debug mode, this is running perfect, when i run in release mode the program is shutdown and
i got this message :
An exception of type ‘System.OutOfMemoryException’ occurred in SciChart.Data.dll but was not handled in user code.
Any idea ?
Thanks a lot
Hello Verschueren Jean-Philippe,
Can you tell me what is your “Platform target” value ?
Can you go to project properties > Build tab > Platform target, but beware to check if Configuration combobox was switch from Active(Debug) ===>>> to Release
take a look at this screenshot: http://take.ms/dROc2
Hi Jean Philippe.
A simple calculation to determine the memory requirement of SciChart is as follows.
40,000,000 points of X=Double, Y=Double requires 40,000,000 * 2 * 8 bytes just to store the data values. This is 640MBytes.
In addition, scichart needs some memory to store drawing commands and pixel coordinates (but not much).
Adding Metadata to X,Y points requires a further 4 bytes per data-point = 800MByte. Metadata is not added unless you add it, however for FIFO charts we have to create an empty Metadata array anyway. So it is possible to have 800MByte memory requirement for 40M points.
This is the raw amount of memory required to just store the data.
The limit per-process for 32-bit applications is 1.5GByte of memory and less if the heap is fragmented. So it is easy to get out of memory exception in 32-bit mode with this many data points.
What you can do is change the data-types.
e.g. 40M points, non FIFO, X,Y types float will require just 320MByte. A considerable reduction.
Alternatively, force your application to run in 64-bit mode when you have such high data requirements and everything will be OK!
Please login first to submit.