LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX memory leak

Hi,
I am using LabVIEW 6.1 to port the cognex vision SW to LabVIEW using ActiveX.
When I grab an image and display the image in a display-control, the image memory is not deallocated afterwards. I run out of memory after 100 images, no matter how I'm using the ActiveX functions.
When I do the same thing in Visual Basic : no problem
I only run out of memory if I do the grabbing in a while loop. If I set the VI to continuous run, I get no memory problems, because the VI seems to deallocate it's memory every run.
0 Kudos
Message 1 of 3
(3,123 Views)
I'm not sure how the function that you are using works because I don't have that ActiveX server, but if you give a little more info about how it's called, maybe I could help out. Is it returning a pixmap that you are displaying to a picture control? Are you calling this in a loop? If so, are you using shift registers to retain any of the data? Also, you may want to try posting to the IMAQ (Image Acquisition) forum also in case some of those developers have had experience with this ActiveX server.
J.R. Allen
0 Kudos
Message 2 of 3
(3,123 Views)
Hello there,
I noticed you used Cognex software in your application and would like to pick your brain about it. I'm also using Cognex for a current application, but can't seem to get some properties (i.e. exposure, brightness, and contrast) to work as expected. If possible, please e-mail me at: jcflores@archonwest.com. Hopefully you check the DevZone more often than I do. 🙂 Thanks!
-----
Juan Carlos Flores
ArchonWest Technologies, Inc.
http://www.archonwest.com
0 Kudos
Message 3 of 3
(3,123 Views)