Re: [sqlite] Segmentation Fault on SQLITE3_exex

2011-10-28 Thread Black, Michael (IS)
1 + > Von: "Black, Michael (IS)" <michael.bla...@ngc.com> > An: General Discussion of SQLite Database <sqlite-users@sqlite.org> > Betreff: Re: [sqlite] Segmentation Fault on SQLITE3_exex > What you're showing should basically work as long it's not a single class

Re: [sqlite] Segmentation Fault on SQLITE3_exex

2011-10-28 Thread Christian
"Black, Michael (IS)" <michael.bla...@ngc.com> > An: General Discussion of SQLite Database <sqlite-users@sqlite.org> > Betreff: Re: [sqlite] Segmentation Fault on SQLITE3_exex > What you're showing should basically work as long it's not a single class > instantiatio

Re: [sqlite] Segmentation Fault on SQLITE3_exex

2011-10-28 Thread Black, Michael (IS)
base; sqlite-users@sqlite.org Subject: EXT :Re: [sqlite] Segmentation Fault on SQLITE3_exex First of all thanks for your detailed reply! According to the documentation its not recommended to reuse a preparedStatement after finalizing it. So my initial guess to do something like this: sqlite3_st

Re: [sqlite] Segmentation Fault on SQLITE3_exex

2011-10-28 Thread Stephan Beal
On Fri, Oct 28, 2011 at 10:07 AM, Christian wrote: > static char command [1024]; > ... > sprintf (command, "SELECT * from model where id=?"); > FYI: that can be simplified to: static char const * command = "SELECT * from model where id=?"; There's no reason why the overhead

Re: [sqlite] Segmentation Fault on SQLITE3_exex

2011-10-28 Thread Christian
;Black, Michael (IS)" <michael.bla...@ngc.com> > An: General Discussion of SQLite Database <sqlite-users@sqlite.org> > Betreff: Re: [sqlite] Segmentation Fault on SQLITE3_exex > I think we went throught something similar to this a while ago. > > > > Does each cla

Re: [sqlite] Segmentation Fault on SQLITE3_exex

2011-10-27 Thread Black, Michael (IS)
0:24 AM To: General Discussion of SQLite Database; sqlite-users@sqlite.org Subject: EXT :Re: [sqlite] Segmentation Fault on SQLITE3_exex Currently I'm using valgrinds memcheck tools to solve the issue, I already found some undelete memory which is definitly not causing the error, but I r

Re: [sqlite] Segmentation Fault on SQLITE3_exex

2011-10-27 Thread Christian
com> > An: General Discussion of SQLite Database <sqlite-users@sqlite.org> > Betreff: Re: [sqlite] Segmentation Fault on SQLITE3_exex > > > Then put a breakpoint on the "p" being passed into this function to catch > when it changesit should onl

Re: [sqlite] Segmentation Fault on SQLITE3_exex

2011-10-27 Thread Black, Michael (IS)
on Systems From: sqlite-users-boun...@sqlite.org [sqlite-users-boun...@sqlite.org] on behalf of Christian [siriu...@gmx.de] Sent: Thursday, October 27, 2011 6:49 AM To: General Discussion of SQLite Database; sqlite-users@sqlite.org Subject: EXT :Re: [sqlite] Segmentation Fault on SQ

Re: [sqlite] Segmentation Fault on SQLITE3_exex

2011-10-27 Thread Christian
t; An: General Discussion of SQLite Database <sqlite-users@sqlite.org> > Betreff: Re: [sqlite] Segmentation Fault on SQLITE3_exex > Me thinkst you're corrupting your stack or memory. > > > > I'd be willing to bet big money that this is your program causing this as > the

Re: [sqlite] Segmentation Fault on SQLITE3_exex

2011-10-27 Thread Black, Michael (IS)
: sqlite-users-boun...@sqlite.org [sqlite-users-boun...@sqlite.org] on behalf of Christian [siriu...@gmx.de] Sent: Thursday, October 27, 2011 4:51 AM To: sqlite-users@sqlite.org Subject: EXT :[sqlite] Segmentation Fault on SQLITE3_exex Hello everybody, I'm facing a strange issue and believe that my

[sqlite] Segmentation Fault on SQLITE3_exex

2011-10-27 Thread Christian
Hello everybody, I'm facing a strange issue and believe that my setup is somehow wrong. From time to time my program crashes with segfault when calling: if (sqlite3_exec (db, "BEGIN TRANSACTION", 0, 0, 0) != SQLITE_OK) { //error } The stacktrace points to this function: static void