Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-04

Crash at startup with sqlite project

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Felipe Monteiro de Carvalho

Hello,

I have a simple project with sqlite 3. It's running on Windows with FPC 2.2.0 and svn Lazarus, and my DLL is version is 3_5_7 downloaded from official sqlite website.

It crashes at at:

procedure TSqlite3Dataset.InternalInitFieldDefs;
....
  sqlite3_step(vm);   // Here

With the message:

ntdll!RtlEnumerateGenericTableLikeADirectory

And this stack trace:

#0 ntdll!RtlEnumerateGenericTableLikeADirectory at :0 #1 sqlite3_mutex_enter at :0
#2 sqlite3_step at :0
#3 :115
#4 :845
#5 $CUSTOMSQLITEDS$_Ld21 at :0
#6 $DBCOMPONENTS$_Ld6 at :0
#7 $CUSTOMSQLITEDS$_Ld24 at :0
#8 ?? at :0
#9 TDATASET__CREATE((^TCOMPONENT) 0x7c9140bb, (POINTER) 0x1673b0) at dataset.inc:25
#10 TCOMPONENTSDATABASE__CREATE((POINTER) 0x580774, (TCOMPONENTSDATABASE) 0x8dae8) at dbcomponents.pas:43 #11 :92
#12 :668
#13 ?? at :0
#14 ?? at :0

The project sources can be download from sourceforge:

http://sourceforge.net/projects/turbocircuit

The strange part is that Lazarus runs fine with the sqlite package installed and the same dll and also that I had already worked with this project with all the same variables (except maybe sligtly different sqlite3 version) on another windows xp machine and it all worked fine.

Any ideas?

thanks,

Felipe Monteiro de Carvalho
Denis Golovan
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 12 lines
Hello, I have a simple project with sqlite 3. It's running on Windows with FPC 2.2.0 and svn Lazarus, and my DLL is version is 3_5_7 downloaded from official sqlite website. It crashes at at: procedure TSqlite3Dataset.InternalInitFieldDefs; .... sqlite3_step(vm); // Here

Try using FPC svn. Several changes were commited recently.

Best regards, Denis Golovan aka MageSlayer
Luiz Americo Pereira Camara
to Felipe Monteiro de Carvalho: I have a simple project with sqlite 3. It's running on Windows with FPC 2.2.0 and svn…
Felipe Monteiro de Carvalho wrote 18 lines
Hello, I have a simple project with sqlite 3. It's running on Windows with FPC 2.2.0 and svn Lazarus, and my DLL is version is 3_5_7 downloaded from official sqlite website. It crashes at at: The strange part is that Lazarus runs fine with the sqlite package installed and the same dll and also that I had already worked with this project with all the same variables (except maybe sligtly different sqlite3 version) on another windows xp machine and it all worked fine. Any ideas?

The db filename is hardcoded.

See
http://www.geocities.com/camara_luiz/docs/dataset/dataset-tutorial-01.html to know how to setup a db file dinamically

Luiz

Felipe Monteiro de Carvalho
to Luiz Americo Pereira Camara
Luiz Americo Pereira Camara wrote

Thanks, that was indeed true, and the filename was hardcoded, but I fixed it and the error persists ... The dataset starts not Actived anyway, and the code to activate it isn't called in the startup.

I think I was using a more recent Free Pascal on the other computer ... I'll try with 2.2.1

Felipe Monteiro de Carvalho
Luiz Americo Pereira Camara
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 15 lines
On Wed, Apr 2, 2008 at 7:46 PM, Luiz Americo Pereira Camara wrote: > See > http://www.geocities.com/camara_luiz/docs/dataset/dataset-tutorial-01.html > to know how to setup a db file dinamically > Thanks, that was indeed true, and the filename was hardcoded, but I fixed it and the error persists ... The dataset starts not Actived anyway, and the code to activate it isn't called in the startup. I think I was using a more recent Free Pascal on the other computer ... I'll try with 2.2.1

Here works fine both with fpc 2.2.0 and with a newer sqlitedataset version after dinamically setting the filename.

PS: With more recent versions of sqlitedataset you get meaningful error messages.

Luiz