Hey

I don't even get to call the sqlite3_errmsg() function. My Program crashes
with the call sqlite3_open(filename,&db);

I'm been spending hours now, to figure out, what may cause that crap :) I
really have no idea...



-----Original Message-----
From: Clay Dowling [mailto:[EMAIL PROTECTED] 
Sent: Montag, 6. August 2007 22:27
To: sqlite-users@sqlite.org
Subject: Re: [sqlite] Security Problem C/C++

Check the result code of sqlite3_open and use the error message from
sqlite3_errmsg as the message in your exception.  Then you'll know what's
wrong.

Clay


Severin Müller wrote:
> Hi
>
>
>
> I’m trying to use SQLite3 for my File, but I’m having trouble to use the
> library properly.
>
>
>
> I Have to following Code:
>
>
>
> void Nickserv::write_nickname(std::string nick,std::string
> pass,std::string
> email,User user)
>
> {
>
> #ifdef _WIN32
>
>       const char *filename = "db\\Nickserv.db";
>
> #else
>
>       const char *filename = "db/Nickserv.db";
>
> #endif
>
>       sqlite3 *db;
>
>       sqlite3_open(filename,&db);
>
> }
>
>
>
> When i run the Program, I get get the following Error:
>
>
>
> Unhandled exception… so it’s some kind of a segmentation fault.
>
>
>
> And my Debugger is tracing the error in a file called “gs_support.”…
>
>
>
>
>
> Now, I really can’t figure out, what the Problem is. Are certain
> Architectures not supported? I’m Using Win32 on a Pentium 4.
>
>
>
> Thanks for your help in Advance.
>
>
>
>
>
> Greetings
>
>
>
>
> Severin Mueller
>
> Switzerland
>
>
>
>


-- 
Lazarus Registration
http://www.lazarusid.com/registration.shtml


----------------------------------------------------------------------------
-
To unsubscribe, send email to [EMAIL PROTECTED]
----------------------------------------------------------------------------
-


-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to