Hello all,
I've been using the toolbox/inifile.h library for 3 years on CVI for Linux
with few problems. And suddenly it won't load my ini file.
It runs fine on Windows, I haven't updated the Linux CVI compiler (version
10, patched), I haven't done any relevant changes to my code.
IniText hInitFile;
char InitPath="config.ini" ;
hInitFile = Ini_New(0);
if (hInitFile==NULL) return 1;
Ini_ReadFromFile (hInitFile, IniPath)
Crashes here with core dump:
(gdb) bt
#0 0x00263a4c in memcpy () from /lib/libc.so.6
#1 0x08082e57 in Ini_ReadGeneric ()
#2 0x00000000 in ?? ()
Since it happens in a compiled lib, I can't do much more.
--
Guillaume Dargaud
http://www.gdargaud.net/