Here is the actual code:
int main(void)
{
sqlite3* db_handle;
sqlite3_open(DB_NAME,&db_handle);
sqlite3_close(db_handle);
my_ping("10.0.0.4");
return 0;
}
If I call close after ping, it works. However, if besides of opening the DB
I perform any query, ping doesnt work either.
On Tue, Mar 23, 2010 at 3:45 PM, Matthew L. Creech <[email protected]>wrote:
> On Tue, Mar 23, 2010 at 12:55 PM, Martin Sigwald <[email protected]>
> 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
> >
>
> Could you post the actual code snippet? For example, sqlite3_close()
> doesn't take a string - you did say it's pseudocode, I'm just
> wondering if there's a problem with the arguments along those lines.
>
> --
> Matthew L. Creech
> _______________________________________________
> sqlite-users mailing list
> [email protected]
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users