LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Ini_ReadFromFile error:Under array bounds

I am calling the .ini function, and examining the string passed in the calling context, it looks OK, but inside the library function it reports "Out of bounds pointer argument (before start of array)".
The calling line is;
if ( Ini_ReadFromFile ( g_myInifile, sysininame ) == 1 )
If I edit this line and re-save (without changing the code), it then works OK. What is the likely cause, and how do I track it down?
0 Kudos
Message 1 of 2
(3,251 Views)
I cannot guess what is the cause of this error, but I can suggest you how to track it down.

In the Instrument Menu execute the Edit... function, then select the IniFile instrument and press Attach and Edit Source button; you should be breaked now in case of errors; if not go into the source code and place a breakpoint in the Ini_ReadFromFile function, then execute the software step-by-step.

Hope this helps
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(3,266 Views)