Re: [sqlite] sqlite3_step() crash if didn't use sqlite3_bind_int before it

2007-12-01 Thread Ken
You Need to bind for each insert, Sqlite does not bind by address it does a copy. You'll need to populate your variables inside the loop then bind then step: prepare_v2 for(i = ...) { assign Variables to be bound. sqlite bind for each variable/column s

[sqlite] sqlite3_step() crash if didn't use sqlite3_bind_int before it

2007-11-30 Thread Joanne Pham
Hi All, I have the following code: bool insert(Uccls *_uccls, TCPAcclBucket *tcpAcclBucket){ int nextCol; memcpy(&tcpAcclRec, tcpAcclBucket, sizeof (TCPAcclBucket)); bindColumns for tcpAcclRec //Execute statement

RE: [sqlite] sqlite3_step crash?

2006-03-29 Thread Boris Popov
Wednesday, March 29, 2006 6:40 AM To: sqlite-users@sqlite.org Subject: Re: [sqlite] sqlite3_step crash? On Wed, 29 Mar 2006 [EMAIL PROTECTED] wrote: >"Boris Popov" <[EMAIL PROTECTED]> wrote: >> >> Does this help at all? >> > >No. A stack trace, espec

Re: [sqlite] sqlite3_step crash?

2006-03-29 Thread Christian Smith
On Wed, 29 Mar 2006 [EMAIL PROTECTED] wrote: >"Boris Popov" <[EMAIL PROTECTED]> wrote: >> >> Does this help at all? >> > >No. A stack trace, especially one without line number >information, is of no help whatsoever. I beg to differ. Any stack trace that includes malloc or free is almost certain

Re: [sqlite] sqlite3_step crash?

2006-03-29 Thread drh
"Boris Popov" <[EMAIL PROTECTED]> wrote: > > Does this help at all? > No. A stack trace, especially one without line number information, is of no help whatsoever. If you think the problem is in SQLite and not in your own code, then you should do as much of the following as you can: (1) Exp

RE: [sqlite] sqlite3_step crash?

2006-03-28 Thread Boris Popov
. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. -Original Message- From: Boris Popov [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 28, 2006 10:32 PM To: sqlite-users@sqlite.org Subject: RE: [sqlite] sqlite3_st

RE: [sqlite] sqlite3_step crash?

2006-03-28 Thread Boris Popov
users@sqlite.org Subject: [sqlite] sqlite3_step crash? Hmm, I have a fairly specific scenario here where after fetching values from all the rows in the result set calling sqlite3_step segfaults instead of returning SQLITE_DONE. I'm at a loss as to how I could extract a little more info to help f

[sqlite] sqlite3_step crash?

2006-03-28 Thread Boris Popov
Hmm, I have a fairly specific scenario here where after fetching values from all the rows in the result set calling sqlite3_step segfaults instead of returning SQLITE_DONE. I'm at a loss as to how I could extract a little more info to help figure this out, so any pointers would be greatly appreciat