Re: [sqlite] Segmentation Fault when calling sqlite3_finalize

2012-05-31 Thread Stephen Wood
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 wrote: > On 05/31/2012 10:46 P

Re: [sqlite] Segmentation Fault when calling sqlite3_finalize

2012-05-31 Thread Dan Kennedy
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_pre

Re: [sqlite] Segmentation Fault when calling sqlite3_finalize

2012-05-31 Thread Stephen Wood
Thank you! I can't believe I missed that! On Thu, May 31, 2012 at 10:50 AM, Marc L. Allen wrote: >columnNames[i] = malloc(strlen(buffer) + 1); > > Need to deal with that pesky '\0'! > > -Original Message- > From: sqlite-users-boun...@sqlite.org [mailto: > sqlite-users-boun...@sql

Re: [sqlite] Segmentation Fault when calling sqlite3_finalize

2012-05-31 Thread Marc L. Allen
columnNames[i] = malloc(strlen(buffer) + 1); Need to deal with that pesky '\0'! -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Stephen Wood Sent: Thursday, May 31, 2012 11:47 AM To: sqlite-users@sqlite.org Subject: [