When the attached C-File is compiled and executed in Debug mode CVI fails with an Over Array Bounds error while dereferencing a valid char * pointer. The function 'LogEnetData ()' is passed a pointer to over a thousand bytes of valid data and yet CVI declares an error when the loop index is 2. I believe that this violates standard C behaviour.
When I single-stepped through the code and monitored the value of pData after it had been incremented, I got the following results:
i pData
------------------- -----------------
0 0x0012FA6D This is OK
1 "Over Array Bounds"