Hello all,
In my CVI 7.1 application I have to copy some stuff. The original code I got from another department has:
void dec_fMemCpy( void * pvDest, void * pvSource, int iSize )
{
char * pubySrc;
char * pubyDest;
int i;
pubysrc=(char *)pvSource;
pubyDest = (char *)pvDest;
for(i=0; i<iSize; i++)
{
*pubyDest = *pubySrc;
pubyDest++;
pubySrc++;
}
}With that I get an "Array out of bounds Error" when
iSize > 6144.
I tried
memcpy instead and face the same problem:
FATAL RUN-TIME ERROR: "storm_decoder.c", line 1660, col 13, thread id 0x000002A4: Array argument too small (6144 bytes). Argument must contain at least 10796 bytes (10796 elements).
The code works in different environments. Is there a special reason for that CVI delicacy? And what can be a way to handle that issue?
Best regrads,
ah