LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Dereference of out-of-bounds pointer

Hello.  I am getting a peculiar error.  I have a PXIe-8100 where the line where I memset HWTimers[0].Name works every time, but when I run the same exact code on a PXIe-8840 I get the run-time error shown in the bottom of the second picture below.  I have tried every possible method I can think of to set any value in this 40 char array, but I get the same run-time error every time on the 8840.  Does anyone have any idea why this would happen? 

 

Timer Declaration.jpg

 

TimerUse.jpg

Programming Data Acquisition and Control in Measurement Studio and Labwindows/CVI
0 Kudos
Message 1 of 2
(4,248 Views)

Hmm, not sure why that's happening for you, but an alternate method for clearing your string is to simply write a Null (0x0) to the first index of the character string member.

 

HWTimers[0].Name = 0;
0 Kudos
Message 2 of 2
(4,225 Views)