[Lazarus] SQLdb_Tutorial3 error

Santiago A. svaa at ciberpiula.net
Tue Mar 13 10:43:13 CET 2018


El 12/03/2018 a las 13:41, Rik van Kekem via Lazarus escribió:
> Op 08-03-2018 16:07 schreef Santiago A. via Lazarus:
>> sqlite3.dll is in the same directory that the binary. I have created the
>> table employee, just in case. I don't know what else to check.  I can't
>> debug anything else, the debug can't enter in "open" method.
>
> Creating the database and table employee wasn't "just in case".
> It was a requirement if you want to use that example with sqlite.
I mean "Just in case" not to get the TStringGrid properly filled, but to
get an exception like "Table not found", not a "SIGSEGV exception"

> http://wiki.lazarus.freepascal.org/SQLdb_Tutorial3#Getting_database_data_into_normal_controls
>
That is the piece of code that raises the error, in the line "Fquery.open"

>
> And surely you changed something (like the .ini) otherwise you end up
> with Firebird db connection.
No, the default is still firebird, and it woks fine. Well, it doesn't
work because employee doesn't exits, and I get an "Database not found
exception"
I select on propose sqlite3. and I get SIGSEGV  with no more clue in the
Fquery.open

>
> So zipping your project (with the database) is still best.
>
> Tip: You are sure sqlite3.dll has the same 'bitness' (i.e. 32 of 64
> bit) as your executable?

Well, it is the dll I use for some old delphi 32bits utilities.

My point is if I'm missing some package, or the dll should be in other
path, or a hint how to dig and debug deeper, beacuse I can't debug into
open.


-- 
Saludos

Santiago A.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: publishedproject.zip
Type: application/x-zip-compressed
Size: 8953 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180313/bdea00f0/attachment-0001.bin>


More information about the Lazarus mailing list