From: Michael R. <re...@eu...> - 2004-03-12 05:51:30
|
Hi Javi, >>>The problem is wherever I use cfg_get() function I get "Segmentation >>>fault" when running lcd4linux. >> >>Can you send me the code? > > Upsss ;) I forgot it > Just insert > char *get=cfg_get("MySQL","server","NOT FOUND"); > wherever in pluging_mysql.c As I cannot test because I don't have MySQL installed here, I'd need the full code. Normally if a library segfaults, it means that you passed wrong parameters. > #1 0x08054ca3 in my_MySQLquery (result=0x806f060, server=0x8060d40, login=0x8060d40, pass=0x8060d40, database=0x8060d40, query=0x8060d40) Strange: all pointers have the same address.... > #3 0x0804db29 in Eval (tree=0x806ef20, result=0xbffff010) at evaluator.c:1216 This pointer looks strange, too.... bye, Michael -- Michael Reinelt Tel: +43 676 3079941 Geisslergasse 4 Fax: +43 316 692343 A-8045 Graz, Austria e-mail: re...@eu... |