Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory Leak in cwui.ocx (graph control)

Hi!

I'm using cwgraph control (cwui.ocx V2.0.3.413) in VB6. Once I have assigned the graph properties to set UI appearance, I sent 2d arrays to update the plot only (either .plotY or .ChartY, doesn't matter). The application then consumes more and more memory. When I comment out the .plotY or .ChartY code line the problem disappears. So it seems to be a memory leak in the cwui control. Who can help?
0 Kudos
Message 1 of 4
(3,458 Views)
It is hard to diagnose a memory leak just by a description. It would really helps us if you could send technical support (at http://www.ni.com/ask) a VB project that exhibits this leak. Once we reproduce it in house, we'll be in a better position to offer more help.

Regards,
Azucena
NI
0 Kudos
Message 2 of 4
(3,458 Views)
Keep in mind that the graph keeps its own copy of the data that you pass in via the Plot/Chart methods. It has to do this for several reasons, like if it needs to repaint or you want to pan the data. This could explain what you're seeing if the memory usage is comparable to the amount of data that you're passing in via the Plot/Chart methods. If that's not the case, please post a small test project that demonstrates the problem. Thanks.

- Elton
0 Kudos
Message 3 of 4
(3,458 Views)
Thanks for your quick reply. I'll try to reduce the code to a minimum and post it ASAP.

Andreas
0 Kudos
Message 4 of 4
(3,458 Views)