Re: [sqlite] Access Violation in sqlite3.dll

2009-10-01 Thread meng wei
Thanks! >This line shouldn't compile unless you really meant >&CMainView::sqlCallback_UpdateList as the 3rd parameter. I reallly meant it as the 3rd parameter. I have made my program run but don't why,as I've wrote in the reply to Pavel. >Do you understand that this output is useless? What woul

Re: [sqlite] Access violation in sqlite3.dll

2009-10-01 Thread meng wei
THANKS VERY MUCH for so exhaustive reply! :-) I made my program run before I saw your reply, but I can't understand how it works. The problem seems to be caused by the 1st parameter of sqlite3_exec. sqlite3_exec(pDoc->m_db,pDoc->m_strSQL,sqlCallback_UpdateList , 0, &(pDoc->m_pErrMsg)); I changed

Re: [sqlite] Access violation in sqlite3.dll

2009-09-28 Thread meng wei
That sounds reasonable. But I 've deleted code which can provide evidence. That's all,it's just a homework. Thanks! ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Access violation in sqlite3.dll

2009-09-28 Thread Pavel Ivanov
I believe your changes mean that your database handler pDoc->m_db wasn't open before the call to CMainView::myUpdateView() despite you thought so. Pavel On Mon, Sep 28, 2009 at 9:12 AM, meng wei wrote: > THANKS VERY MUCH for so exhaustive reply! :-) > > I made my program run before I saw your re

Re: [sqlite] Access Violation in sqlite3.dll

2009-09-28 Thread meng wei
Thanks! > This line shouldn't compile unless you really meant > &CMainView::sqlCallback_UpdateList as the 3rd parameter. I reallly meant it as the 3rd parameter. I have made my program run but don't why,as I've wrote in the reply to Pavel. > Do you understand that this output is useless? What w

Re: [sqlite] Access violation in sqlite3.dll

2009-09-28 Thread meng wei
THANKS VERY MUCH for so exhaustive reply! :-) I made my program run before I saw your reply, but I can't understand how it works. The problem seems to be caused by the 1st parameter of sqlite3_exec. sqlite3_exec(pDoc->m_db,pDoc->m_strSQL,sqlCallback_UpdateList , 0, &(pDoc->m_pErrMsg)); I changed

Re: [sqlite] Access violation in sqlite3.dll

2009-09-28 Thread Mihai Limbasan
Hi, Meng. The problem is that you are passing a C++ class method to sqlite3_exec. sqlite3_exec expects a callback function using the CDECL calling convention, and by default class methods do not use that calling convention when compiled under Visual C++ (they use thiscall, IIRC.) The reason it wo

Re: [sqlite] Access Violation in sqlite3.dll

2009-09-28 Thread Pavel Ivanov
> sqlite3_exec(pDoc->m_db,"select * from table1", sqlCallback_UpdateList, > 0, &(pDoc->m_pErrMsg)); This line shouldn't compile unless you really meant &CMainView::sqlCallback_UpdateList as the 3rd parameter. > I met no problem with win32 console application,but when it turn to MFC > in Visual C+

[sqlite] Access Violation in sqlite3.dll

2009-09-28 Thread meng wei
I met no problem with win32 console application,but when it turn to MFC in Visual C++,the same code dosen't work. *The error is:* Unhandeled exception in xxx.exe(sqlite3.dll)0xC005 Access Violation *More output:* Loaded 'ntdll.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\sys

[sqlite] Access violation in sqlite3.dll

2009-09-27 Thread meng wei
Hi everyone! I met no problem with win32 console application,but when it turn to MFC in Visual C++,the same code dosen't work. Anyone can give me some suggestion? Thanks in advance! *The error is:* Unhandeled exception in xxx.exe(sqlite3.dll)0xC005 Access Violation *More output:* Loaded 'ntdll

[sqlite] Access violation in SQLITE3.DLL (version 3.6.6.2) when using views joining with other views ...

2008-12-05 Thread Alessandro Merolli
Hi all, I'm sorry about the inconvenience. I sent the e-mail below to [EMAIL PROTECTED] but I do not know if it's the correct e-mail to tell about possible bugs. So, I'm just forwarding my yesterday's e-mail in sqlite-users@sqlite.org . Please check the message below, any help is appr