Re: [sqlite] SQLite gives Access Violation in Windows

2007-12-12 Thread CAVALO SCHMIDT
Thank you, it worked. 2007/12/12, Uwe Sander <[EMAIL PROTECTED]>: > > Hi, > Am Mittwoch, 12. Dezember 2007 schrieb CAVALO SCHMIDT: > > Ok, I'm sending to you a zip file with the Pelles C project, together > > with the database (a small test database, with a key1 with 2 values > > [which doesn't

Re: [sqlite] SQLite gives Access Violation in Windows

2007-12-12 Thread Uwe Sander
Hi, Am Mittwoch, 12. Dezember 2007 schrieb CAVALO SCHMIDT: > Ok, I'm sending to you a zip file with the Pelles C project, together > with the database (a small test database, with a key1 with 2 values > [which doesn't throw errors] and a key2 with six values [which throws the > error]); note that,

Re: [sqlite] SQLite gives Access Violation in Windows

2007-12-12 Thread Trevor Talbot
On 12/12/07, CAVALO SCHMIDT <[EMAIL PROTECTED]> wrote: > It is SQLite 3.4.2, and I downloaded the ready binary, the DLL and sqlite3.h; > I didn't compile anything. But the sqlite3.lib didn't come ready; it came as > sqlite3.def together with the DLL, then I made it into a sqlite3.lib by > using

Re: [sqlite] SQLite gives Access Violation in Windows

2007-12-12 Thread CAVALO SCHMIDT
Thank you for the response. So, how can I fix it? Can it have anything to do with sqlite3.lib? Is it a bug? Thank you in advance. 2007/12/12, Trevor Talbot <[EMAIL PROTECTED]>: > > On 12/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > "Trevor Talbot" <[EMAIL PROTECTED]> wrote: > > > > >

Re: [sqlite] SQLite gives Access Violation in Windows

2007-12-12 Thread Trevor Talbot
On 12/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > "Trevor Talbot" <[EMAIL PROTECTED]> wrote: > > > test.exe: WinMain( ) + 71 > > > sqlite3.dll: sqlite3_exec( ) + 154 > > > sqlite3.dll: sqlite3_column_text( ) + 1A > > > sqlite3.dll: sqlite3_data_count( ) + AC > > > ntdll.dll:

Re: [sqlite] SQLite gives Access Violation in Windows

2007-12-12 Thread CAVALO SCHMIDT
It is SQLite 3.4.2, and I downloaded the ready binary, the DLL and sqlite3.h; I didn't compile anything. But the sqlite3.lib didn't come ready; it came as sqlite3.def together with the DLL, then I made it into a sqlite3.lib by using the LIB.EXE utility of Visual Studio 6.0 -> LIB.EXE

Re: [sqlite] SQLite gives Access Violation in Windows

2007-12-12 Thread drh
"Trevor Talbot" <[EMAIL PROTECTED]> wrote: > > > test.exe: WinMain( ) + 71 > > sqlite3.dll: sqlite3_exec( ) + 154 > > sqlite3.dll: sqlite3_column_text( ) + 1A > > sqlite3.dll: sqlite3_data_count( ) + AC > > ntdll.dll: RtlEnterCriticalSection( ) + B > > Hmm, looks like a fault within SQLite's

Re: [sqlite] SQLite gives Access Violation in Windows

2007-12-12 Thread Trevor Talbot
On 12/12/07, CAVALO SCHMIDT <[EMAIL PROTECTED]> wrote: > For example, in a database where searching for text "key1" (column a) > returns "value1", "value2", "value3", and "value4" in column b, the callback > fnuction of that code would be called THREE times, returning thus three > message boxes:

Re: [sqlite] SQLite gives Access Violation in Windows

2007-12-12 Thread CAVALO SCHMIDT
Thank you for the answer. Actually, I've already scattered MessageBox() calls through the code, and I've found out exactly where the error happens. For example, in a database where searching for text "key1" (column a) returns "value1", "value2", "value3", and "value4" in column b, the callback

Re: [sqlite] SQLite gives Access Violation in Windows

2007-12-12 Thread Trevor Talbot
On 12/12/07, CAVALO SCHMIDT <[EMAIL PROTECTED]> wrote: > I'm programing in C, new to SQLite, in Windows, with the Pelles C Compiler > for Windows. > It works well. BUT, when I try to put this code in a Win32 application, like > inside a WinMain procedure, for example, a strange behavior happens:

[sqlite] SQLite gives Access Violation in Windows

2007-12-12 Thread CAVALO SCHMIDT
Salutations, I'm programing in C, new to SQLite, in Windows, with the Pelles C Compiler for Windows. When I create a Console project and put, for example, the following commands (an SQLite connection with callback function): static int callback(void *NotUsed, int argc, char **argv, char