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 > > > > Im trying to use SQLite3 for my File, but Im 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 its some kind of a segmentation fault. > > > > And my Debugger is tracing the error in a file called gs_support. > > > > > > Now, I really cant figure out, what the Problem is. Are certain > Architectures not supported? Im 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] -----------------------------------------------------------------------------