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.


On Tue, Mar 23, 2010 at 12:55 PM, Martin Sigwald <> 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(""); //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
sqlite-users mailing list

Reply via email to