Thanks for your reply
I have changed my code as below:
> > > sqlite *db;
> > > char *zErrMsg = 0;
> > > db = sqlite_open("test.db", 0, &zErrMsg);
> > > sqlite_close(db);
> > > db = NULL;Now I am sure that zErrMsg is NULL after sqlite_open(),and I don't get the "-DOS_UNIX" in my complier , btw ,I use vc6 +sp5 . Regards, Steven Liu -----邮件原件----- 发件人: Dan Kennedy [mailto:[EMAIL PROTECTED] 发送时间: 2005年4月5日 14:57 收件人: [email protected] 主题: Re: 4p84: [sqlite] Sqlite causes exit error under symbian! > I do have try your suggestion, but it seems to no effect :( > For Symbian OS it is very strict with the memory assignation, u must call > closeSTDLIB() after using some stdlib functions otherwise u will got the > exit error. > So I guess my issue like that But I have no idea about what to deal with the > sqlite_open() such as closeSTDLIB(). > > > here is my code : > > > > > > sqlite *db; > > > char *zErrMsg = 0; > > > db = sqlite_open("test.db", 0, &zErrMsg); > > > sqlite_close(db); > > > db = NULL; > > > delete db; Call closeSTDLIB() before exiting then. SQLite might be using some of those functions. Also, check if zErrMsg is still NULL after the sqlite_open call . SQLite may have allocated space for an error message. Back in version 2 you had to free this yourself. Something like: if( zErrMsg ){ sqlite_free(zErrMsg); } Question: does "-DOS_UNIX" appear as a compiler option when you are building it? If so there might be a couple of bytes allocated for a static hash table that aren't being freed. __________________________________ Yahoo! Messenger Show us what our next emoticon should look like. Join the fun. http://www.advision.webevents.yahoo.com/emoticontest

