LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Ini_ReadFromFile dumps core in CVI for Linux

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/
0 Kudos
Message 1 of 2
(2,725 Views)
Solved shortly after posting the above...
There was a wrong entry in the ini file "=0.4" and it caused the crash...
--
Guillaume Dargaud
http://www.gdargaud.net/
0 Kudos
Message 2 of 2
(2,724 Views)