09-17-2007 02:44 PM
09-18-2007 04:10 PM
09-19-2007 07:23 AM
09-19-2007 10:57 AM
This is basically what I am dealing with, Whenever I disose of an image, I get another one created. LEaving tons of images in memory. If I could get any more insight into the VI(s) that cause this, I would really appreciate it.
[URL=http://www.putfile.com/pic.php?img=6649468][img]http://img2.putfile.com/thumb/9/26111543041.jpg[/img][/URL]
09-20-2007 10:10 AM
09-20-2007 10:57 AM
NI Vision v8.2.0, NI LabVIEW v8.0.1
I'm acquiring images using Imaq 3.7.0. With the 1394 drivers v2.0.4.
My program is multi-threaded. One thread acquires and stores the images like this:
http://www.putfile.com/pic.php?img=6657432
Then the other thread inspects the images as they are snapped, then disposes of them like this:
http://www.putfile.com/pic.php?img=6657431
With multiple cameras, I use this multi threaded approach to decrease cycle time as I can acquire faster than I can inspect. That is my reason for using oop.
I would rather not use the "All Images?" dispose because I have template images and calibration images that I only create once.
Currently, I am reusing all images, but there are over 1500 images in memory, I would much rather keep memory use low by dynamically creating and disposing Imaq allocations in case my sample size exceeds my memory capabilities.
10-02-2007 02:18 PM
10-02-2007 02:26 PM
Unfortunately, I cannot post my source because I have finished the project and released the software to customers.
As a workaround, instead of desroying Image references, I used set image size to make the resolution 1x1 so that the image is still in memory it uses less memory.
I would still like to solve this problem for future vision projects.
10-07-2007 08:50 PM
10-09-2023 08:38 AM
Hi,
So 2023 and and the issue remain in LV2019.
Did anyone find a solution to the problem during these 16 years ?
Thanks