Re: [sqlite] query function release problem

2012-08-02 Thread Igor Tandetnik
YAN HONG YE wrote: > char *sql; > sprintf(sql,"select * from myprivate;"); Start by changing this to sql = "select * from myprivate;"; > free(sql); > free(result); ... and dropping these two. You should only free() what you've malloc'ed, and you haven't malloc'ed either of them. -- Igor Ta

Re: [sqlite] query function release problem

2012-08-02 Thread Simon Davies
On 2 August 2012 08:28, YAN HONG YE wrote: . . . > when I use command > " jii select ccc" > it shows a problem: > > "jii.exe has encountered a problem and needs to close. We are sorry for the > inconvenience." > > I couldn't resolve it. > > void query_table(sqlite3 *l_db) > { > char **re

[sqlite] query function release problem

2012-08-02 Thread YAN HONG YE
You could download the origin zip source file by the link: www.yycred.com/sqlte_crypto1.zip when I use command " jii select ccc" it shows a problem: "jii.exe has encountered a problem and needs to close. We are sorry for the inconvenience." I couldn't resolve it. void query_table(sqlite3