Report IMAQ ReadFile, max file size smaller in run time mode in Machine Vision and Imaging Posted October 22, 2014 HI,I want to load large images using LavbVIEW 8.5 and NIVision 8.6.My program is basically very simple: 'IMAQ create' (grayscale (I16) followed by 'IMAQ Read File' and 'IMAQ Dispose'.When I run this program in development mode it is possible to load 16 bit tiff files of 20kx20k pixels (780MB).When I run the executable (run time) it is only possible to load 13kx13k images (330MB)Development mode:load program: used memory 50MB; load image (20kx20k =>780MB): used memory 1230MB; Dispose image still used a memory space of 445MB. NO Error.load program: used memory 50MB; load image (13kx13k =>330MB): used memory 550MB; Dispose image still used a memory space of 220MB. NO Error.Run time (.exe) largest tested image what can be loaded: 13kx13k (330MB).load program: used memory 25MB; load image (13kx13k =>330MB): used memory 522MB; Dispose image still used a memory space of 190MB. NO Error.Loading larger images results in an error: IMAQ Read File, Not enough memory for requested operation.code : -1074396159WHY is it not possible to load a large image in run time mode??How can I resolve this problem?Thanks.
IMAQ ReadFile, max file size smaller in run time mode
in Machine Vision and Imaging
Posted
HI,
I want to load large images using LavbVIEW 8.5 and NIVision 8.6.
My program is basically very simple: 'IMAQ create' (grayscale (I16) followed by 'IMAQ Read File' and 'IMAQ Dispose'.
When I run this program in development mode it is possible to load 16 bit tiff files of 20kx20k pixels (780MB).
When I run the executable (run time) it is only possible to load 13kx13k images (330MB)
Development mode:
load program: used memory 50MB; load image (20kx20k =>780MB): used memory 1230MB; Dispose image still used a memory space of 445MB. NO Error.
load program: used memory 50MB; load image (13kx13k =>330MB): used memory 550MB; Dispose image still used a memory space of 220MB. NO Error.
Run time (.exe) largest tested image what can be loaded: 13kx13k (330MB).
load program: used memory 25MB; load image (13kx13k =>330MB): used memory 522MB; Dispose image still used a memory space of 190MB. NO Error.
Loading larger images results in an error: IMAQ Read File, Not enough memory for requested operation.
code : -1074396159
WHY is it not possible to load a large image in run time mode??
How can I resolve this problem?
Thanks.