LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory leak when reading ROI property of an Image in a loop.

When I read the ROI property of an Image control in a loop, I get a slow memory leak over time. When I take this read out of the loop, no memory leak occurs. Any clues why a simple read of an Image ROI property would cause a memory leak?
0 Kudos
Message 1 of 6
(3,127 Views)
Hello,

The ROI property node created a memory leak in LabVIEW 7.0 or 7.0.1 but it was fixed for all future versions.
What version of LabVIEW are you using?

Hope this helps. Sorry if this is causing you problems.

Regards,

Tica T
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(3,122 Views)

I'm using 2 systems, one with 7.0 and the other with 7.1. I see the problem on the 7.0 machine, and when I import the code on the 7.1 machine, I also see the problem. Is my code on the 7.1 machine using any 7.0 run-time libraries that would cause me to continue seeing this problem? Is there any documention on this issue and the versions it was fixed in? Thanks for any help.

     Chris.

 

0 Kudos
Message 3 of 6
(3,109 Views)
Hello Chris,
 
This issue is documented as being fixed in Vision 7.0.2.   Since you are running code developed in 7.0 on a machine with Vision 7.1, I would suggest replacing the ROI property node with the one from Vision 7.1, then resaving your application.   Do you still get the error when you do this?  Is so, if at all possible, could you post a sample of your code, so we can reproduce the problem on our end.
 
Thanks again Chris!
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 4 of 6
(3,097 Views)
Hello Chris,
 
As a followup comment, I would like to clarify that this problem was fixed in the Vision Module, so if you are moving from LabVIEW 7.0 to LabVIEW 7.1, you will not see the fix unless you updated the version of NI-Vision to something newer than 7.0.1.  If you are using a version of NI-Vision prior to 7.1, then you will still see the problem if you run your code in LabVIEW 7.1.  If this is the case, I would suggest purchasing the latest version of the Vision Module on ni.com to resolve the issue.
 

Message Edited by Wendy L on 10-24-2005 04:11 PM

Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 5 of 6
(3,091 Views)
You are right. My LabVIEW 7.1 machine has the older 7.0 Vision module and the problem doesn't go away even after I recreated the property nodes. Until I can get my hands on the latest Vision module, I'll have to rework my code to minimize the use of the property node for now. Thanks for your help.
      Chris.
0 Kudos
Message 6 of 6
(3,073 Views)