09-03-2020 03:26 AM
I have developed a CVI application for image analysis using the IMAQ vision package.
The application works just fine except that after a long time using it (more than 4 hours and more than 100 images analyzed) I have an error message when doing a simple imaqReadFile() operation. The error code an number I obtain is -1074396159 - ERR_OUT_OF_MEMORY - Not enough memory for requested operation.
I am disposing all images after each use so I made sure the image I am trying to read is fine.
Also the RAM memory seems to be perfectly fine and far away from its capacity.
Any suggestion please?
Thanks in advance,
09-03-2020 04:00 PM
Is it an issue with specific image files? If you start the process back up and operate on the image that threw that error, does everything work well the second time?
09-04-2020 01:14 AM
Yes, I tried to open the image that triggered the error and it is OK. There is no issue with the image.
The program flow is repetitive, so before the issue happens, the same image was overwritten several times and read afterwards without problem. The issue only happens after using the application several hours.
The image is a 4,155KB image in png format, 16 bit depth monochrome.