That is actually how I originally wrote the function, but when I started having the segmentation faults I thought maybe I was mistaken on that count and rewrote it with the call to the step function. Thanks for the tip!
On Thu, May 31, 2012 at 11:31 AM, Dan Kennedy <danielk1...@gmail.com> wrote: > On 05/31/2012 10:46 PM, Stephen Wood wrote: > >> Hello all, >> I'm having some memory allocation difficulties while using the SQLite C >> API. The goal of the function that is currently giving me issues is just >> trying to read the column names from a table. >> > > Tip: Column names are available after sqlite3_prepare_v2() has > returned. You don't need the sqlite3_step() call in your function. > > > ______________________________**_________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-**bin/mailman/listinfo/sqlite-**users<http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users> > -- Stephen Wood RMCI, INC. 1525 Perimeter Parkway Suite 430 Huntsville, AL 35806** ** _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users