LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory leakage in Digital Graph control

Hello
 
When I has called the PlotPackedDigitalLines function many times ,I found leakage memory.Aufter I setup the param ATTR_DIGWAVEFORM_EXPAND_BUSES=0,the leakage memory has decreased!
 
Thanks and Regards
Jacky
 
 
0 Kudos
Message 1 of 4
(3,356 Views)
Hi flyto,

We definitely want to look into any issue that appears to be a memory leak. If you could, pleas address the following questions:

1) Could you please post a small example that demonstrates the memory leak? This would be the quickest way to reproduce this issue on our end.
2) What version of CVI are you using?
3) Have you tried running our digital graph examples to see if the memory leak occurs? Those examples call that function every x amount of time based off a timer and there doesn't appear to be a leak with those. I tested these examples in CVI 8.5.  The two examples I looked at were in the <CVI>\samples\userint\ directory and they were called ClockDigitalGraph, DigGraphDAQmx
4) How are you monitoring this memory leak? Are you watching the memory usage of your application in Task Manager? Does it continually climb and eventually crash  your  system? Or does it climb some, then go back down?

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 4
(3,317 Views)
Hello,
Thanks very much for your reply!

1)I post a small example  as  the attachment,please download and check!
2)I used CVI8.5;
3)I have tested your digital graph example,I changed in your example named "TreeBusDigitalGraph",added a timer for repeating drawing,but it slao appeared to be a leak with it;
4)I monitoring this memory leak in Task  Manager, it  climbed  continually  and  eventually  crash  my  system,never go back down!

Thanks and Regards
Jacky
 




Message Edited by flyto on 03-24-2008 01:28 AM
0 Kudos
Message 3 of 4
(3,298 Views)
Hi Jacky,

Thanks so much for posting your example as it does appear to be a memory leak. My first thought was to look at the ClearDigitalGraph function but then I remember that all its not  necessary to call ClearDigitalGraph before plotting new data on an existing digital graph. When you call any of the plot functions for a digital waveform graph, we actually clear the existing plot lines before we plot the new data.

Anyway, for your reference, the bug id is #99084.  I'll try and see if we can fix this in the upcoming maintenance release of CVI.

Thanks

Sorry for the inconvenience.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 4 of 4
(3,274 Views)