Re: [sqlite] SQLite Options

2017-02-19 Thread Barry Smith
Strange, I replied to this earlier... Perhaps my messages are not getting through. You cannot include a .c file for compilation in a c# project. You'd have to do use a separate DLL and do some pinvoke stuff to get to the raw SQLite interface, but in my opinion you're better off using the

Re: [sqlite] Thread safety of serialized mode

2017-02-19 Thread Rowan Worth
On 18 February 2017 at 01:16, James K. Lowden wrote: > It's why I like Go: it's the first language in 30 years to incorporate > concurrency in its design, and finally support a theoretically sound > model. > I like Go too, but this is giving it a bit too much credit.

Re: [sqlite] Compile Windows dll with MinGW with stdcall calling convention?

2017-02-19 Thread Keith Medcalf
Can you tell us how you do it with the amalgamation using MSVS? > -Original Message- > From: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] > On Behalf Of Bart Smissaert > Sent: Saturday, 18 February, 2017 09:35 > To: General Discussion of SQLite Database > Subject:

Re: [sqlite] Compile Windows dll with MinGW with stdcall calling convention?

2017-02-19 Thread Bart Smissaert
I think that something like this should work: gcc -o SQLite3_StdCall.dll -shared sqlite3.c -s -Wl,--subsystem,windows,-- kill-at It does compile, but I for some reason I can't access the .dll from VB6. I had a look at the name mangling and corrected for that, but still no luck. Maybe best to

Re: [sqlite] SQLite Options

2017-02-19 Thread Clyde Eisenbeis
Sorry for the slow response. My code is in C#. I don't know if the amalgamation source code in C can be compiled so it is compatible with C#. If it can, I'd be interested in details. Thanks! On Sat, Feb 18, 2017 at 1:29 AM, R Smith wrote: > > > On 2017/02/18 12:45 AM,

Re: [sqlite] Compile Windows dll with MinGW with stdcall calling convention?

2017-02-19 Thread Cezary H. Noweta
Hello, On 2017-02-18 17:35, Bart Smissaert wrote: This is simple in MSVS, but can't see how this can be done with the MinGW compiler. Any idea how this can be done with the sqlite3.c amalgation? I have just tried ``CFLAGS=-mrtd -DSQLITE_CDECL=__cdecl'' option on different compilers and

Re: [sqlite] Problem compiling 3.17.0 in MSVS 12

2017-02-19 Thread Bart Smissaert
Just to update on this. I fixed it by getting the MSVS solution setup from the other PC and replace the one that had the problem. This was to do with some faulty setting in the solution setup, not sure which one. So, it had not do with a corrupted MSVS application and also not with a messed up

Re: [sqlite] Smallest reasonable cache size

2017-02-19 Thread Kim Gräsman
On Fri, Feb 17, 2017 at 8:37 PM, Richard Hipp wrote: > On 2/17/17, Kim Gräsman wrote: >> >> Thanks, shrink_memory could come in handy. But this is not the problem >> we're trying to solve -- rather we want to claim as much memory as possible >> up-front to