From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Measurement Studio for .NET 8.0.1 cannot release graphic objects automatic, why?

I found a big problem that GC cannot collect the graphic object whick not use any more. I think the follow methods cannot release object automatic.            
            WaveformGraph.Plots.Clear();
            WaveformGraph.Annotations.Clear();
            WaveformGraph.Cursors.Clear();
            WaveformGraph.XAxes.Clear();
            WaveformGraph.YAxes.Clear();
Is there has a way to release the graohic object?
0 Kudos
Message 1 of 2
(2,716 Views)
I use CLR Profiler & Peformace tools checked it. I found there're many System.Double[] type data (deallocated by large object heap collection) can't be collected by GC. There is just one instance of WaveformPlot, so it seemed I can do nothing.
0 Kudos
Message 2 of 2
(2,703 Views)