Hello,
I am using GetFileSize function to read a file size, and I think I am running into the dreaded 2 gb file size limit for 32 bit applications, since this works for all files below 2 gb. I am using the 64 bit debug as the build but when attempt to get the size for a large file (2,278,153,276 bytes) I get an error:
NON-FATAL RUN-TIME ERROR: Function CVI_GetFileSize: (return value == -3 [0xfffffffffffffffd]).
|
In my code:
static char file_nameEDF[MAX_PATHNAME_LEN];
ssize_t size64;
if(FileSelectPopup ("", "*.edf", "*.edf","Name of File to Read", VAL_LOAD_BUTTON, 0, 0, 1, 1, file_nameEDF)>0){
GetFileSize(file_nameEDF, &size64);
}
Is there another function I should be using?
Thank you,