Sign in Join

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

Mailing lists / lazarus / 2012-03

SQLQuery crashes in Android

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,

Simply putting a TSQLQuery in a Android form crashes.

I searched the lcl and sqldb directories but I couldn't find any place which says "Unknown property"

Any ideas where the exception could be or how to fix it?

It is probably a ARM issue, because using LCL-CustomDrawn-Win32 in x86 works fine.

I/lclapp ( 710): JNI_OnLoad called
I/lclapp ( 710): Reading our Activity Class
I/lclapp ( 710): JNI_OnLoad finished
I/lclapp ( 710): LCLOnCreate called by LCLActivity.onCreate I/lclapp ( 710): [FORMS.PP] ExceptionOccurred
I/lclapp ( 710): Sender=EReadError
I/lclapp ( 710): Exception=Error reading SQLQuery1.FieldDefs: Unknown proper ty: "FieldDefs"
I/lclapp ( 710): Stack trace:
I/lclapp ( 710): $81151990
I/lclapp ( 710): TApplication.HandleException Error reading SQLQuery1.FieldDef s: Unknown property: "FieldDefs"
I/lclapp ( 710): Stack trace:
I/lclapp ( 710): $81151990
W/Rosie ( 176): mAddHtcWidgetByOtherActivity = false, mIsOpenSlideWhenLeaveLa unch = true
I/WindowManager( 99): WIN DEATH: Window{44a2a268 com.pascal.lcltest/com.pascal .lcltest.LCLActivity paused=false}

Felipe Monteiro de Carvalho

Reply by email

Unknown author
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 8 lines
Hello, Simply putting a TSQLQuery in a Android form crashes. I searched the lcl and sqldb directories but I couldn't find any place which says "Unknown property" Any ideas where the exception could be or how to fix it?

It means the form file contains a FieldDefs property, which it does not find in the object itself.

To my knowledge, the FieldDefs property should not be streamed for a TSQLQuery.

Michael.

Reply by email

Sven Barth
to Felipe Monteiro de Carvalho: Simply putting a TSQLQuery in a Android form crashes. I searched the lcl and sqldb…
Felipe Monteiro de Carvalho wrote 8 lines
Hello, Simply putting a TSQLQuery in a Android form crashes. I searched the lcl and sqldb directories but I couldn't find any place which says "Unknown property" Any ideas where the exception could be or how to fix it?

The message "unknown property" is located in the RTL and is used either by TypInfo or by the object reader. So it seems that you have a property in your LFM that's not named the same way as one of the published properties of TSQLQuery.

Regards,
Sven

Reply by email