Does your pinging code involves some pointers to memory (strings or any other stuff) that could be already released before SQLite code is called? Try to run your program under valgrind and see whether it gives any errors.
Pavel On Tue, Mar 23, 2010 at 12:55 PM, Martin Sigwald <msigw...@gmail.com> wrote: > I have a program which builds an ICMP package over IP and sends it. Before > that, I get IP number and other information from a SQlite DB. I was having > problems, so I began to comment different parts of the code, until I got to > this code (pseudocode): > > sqlite3_open(DB_NAME); > sqlite3_close(DB_NAME); > > ping_server("10.0.0.4"); //my ping function, which pings a "hardcoded" IP, > doesnt interact with DB > > > If I run that code, the package nevers gets send (can't detect it with > Wireshark). If a comment the sqlite part, it works perfectly. Somehow, the > SQlite function calls are screwing with the port access, but I can't fin any > reasonable explanation. > Any ideas? > I've been stuck for days with this problem. > > Regards, > Martin Sigwald > _______________________________________________ > sqlite-users mailing list > firstname.lastname@example.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list email@example.com http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users