Re: [sqlite] Fwd: Bug in the docs

2016-11-19 Thread Keith Medcalf
The fifth parameter is a pointer into which the address of the error message is written. If you pass NULL (0), then no error message is returned, and no memory is allocated to contain the message. On the gripping hand, if you pass a pointer (non NULL / non 0) then memory is allocated to conta

Re: [sqlite] I keep getting seg faults building my database using python sqlite3

2016-11-19 Thread Simon Slavin
On 19 Nov 2016, at 10:22pm, Kevin O'Gorman wrote: > Ran Memtest86+ 5.01, two complete passes, with no errors. Well, thanks for doing it anyway. It removes one possible source of problems. Simon. ___ sqlite-users mailing list sqlite-users@mailinglist

[sqlite] Fwd: Bug in the docs

2016-11-19 Thread Igor Korot
Hi, ALL, On the page https://www.sqlite.org/c3ref/exec.html following phrase is written: [quote] If the 5th parameter to sqlite3_exec() is not NULL then any error message is written into memory obtained from sqlite3_malloc() and passed back through the 5th parameter. [/quote] Shouldn't it start w

Re: [sqlite] I keep getting seg faults building my database using python sqlite3

2016-11-19 Thread Kevin O'Gorman
On Fri, Nov 18, 2016 at 10:18 AM, James K. Lowden wrote: > On Fri, 18 Nov 2016 08:55:11 -0800 > "Kevin O'Gorman" wrote: > > > All of the python code is a single thread. The closest I come > > is a few times where I use subprocess.Popen to create what amounts to > > a pipeline, and one place whe

Re: [sqlite] I keep getting seg faults building my database using python sqlite3

2016-11-19 Thread Kevin O'Gorman
Ran Memtest86+ 5.01, two complete passes, with no errors. On Sat, Nov 19, 2016 at 8:19 AM, Kevin O'Gorman wrote: > > > On Sat, Nov 19, 2016 at 8:11 AM, Simon Slavin > wrote: > >> >> On 19 Nov 2016, at 4:08pm, Kevin O'Gorman >> wrote: >> >> > I have two different machines running this stuff.

[sqlite] Bug in the docs

2016-11-19 Thread Igor Korot
Hi, ALL, On the page https://www.sqlite.org/c3ref/exec.html following phrase is written: [quote] If the 5th parameter to sqlite3_exec() is not NULL then any error message is written into memory obtained from sqlite3_malloc() and passed back through the 5th parameter. [/quote] Shouldn't it start w

Re: [sqlite] I keep getting seg faults building my database using python sqlite3

2016-11-19 Thread Roger Binns
On 18/11/16 15:19, James K. Lowden wrote: > Good catch, Roger. It's a liability, but I slightly disagree with your > characterization. > >> - Running any Python code (destructors can be called which then run in >> the parent and child) > > Yes, if those destructors affect shared resources. Th

Re: [sqlite] I keep getting seg faults building my database using python sqlite3

2016-11-19 Thread Kevin O'Gorman
On Sat, Nov 19, 2016 at 8:11 AM, Simon Slavin wrote: > > On 19 Nov 2016, at 4:08pm, Kevin O'Gorman wrote: > > > I have two different machines running this stuff. Only one is having the > > seg faults, but they are different enough that this does not convince me > > to blame hardware. > > Could

Re: [sqlite] I keep getting seg faults building my database using python sqlite3

2016-11-19 Thread Simon Slavin
On 19 Nov 2016, at 4:08pm, Kevin O'Gorman wrote: > I have two different machines running this stuff. Only one is having the > seg faults, but they are different enough that this does not convince me > to blame hardware. Could you, anyway, run a memory test on the computer which is failing ? I

Re: [sqlite] I keep getting seg faults building my database using python sqlite3

2016-11-19 Thread Kevin O'Gorman
On Fri, Nov 18, 2016 at 3:19 PM, James K. Lowden wrote: > On Fri, 18 Nov 2016 10:56:37 -0800 > Roger Binns wrote: > > > Popen calls fork (it seems like you are doing Unix/Mac, not Windows). > > fork() duplicates the process including all open file descriptors. > > One or more of those descriptor

Re: [sqlite] Anybody know why mono SQLite uses SqliteConnection but Windows uses SQLiteConnection?

2016-11-19 Thread Drago, William @ CSG - NARDA-MITEQ
> -Original Message- > From: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] On > Behalf Of Jim Henderson > Sent: Saturday, November 19, 2016 12:16 AM > To: SQLite mailing list > Subject: Re: [sqlite] Anybody know why mono SQLite uses SqliteConnection > but Windows uses