Sign in Join

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

Mailing lists / lazarus / 2011-07

Error running under windows mobile 6.5

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Arí Ricardo Ody

*
I compile and ran the single project that can be found at

http://www.4shared.com/folder/OpVj_TCE/sqlite_test.html

and it ran ok;
*
*
I open the ?Project Options|Paths? and change the ?LCL Widget Type(various)? to ?wince(beta)?; *
*
I open the ?Project Otions|Code generation? and change ?Target OS(-T)? to ?WinCE? and *
?Target CPU family(-P)? to ?arm?;
*
*
Compile the project(no errors);
*
*
Go to my Samsung Omni Pro windows phone running Windows Mobile 6.5; *
*
Create the directory ?testes_sqlite? in the root directory; *
*
Copy ?browseslqiteprj.exe?, dbteste.db and slqite3.dll to the directory create in the item 6 above; *
*
Double click in the ?browseslqiteprj.exe?. Windows Mobile asks for authorization because my executable is not of known author. I click ?yes?. Then I receive the message ?'browsesqliteprj' is not a valid Windows CE application?

May someone tell me what is the problem?

Is there a special DLL to use SQLite in windows CE(or mobile)?

Is there a way of make windows mobile show lazarus programs execution errors? As they are showed in windows or linux?

Greetings from Sao Paulo - Brazil

Ricardo
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110730/dda4d2d1/attachment.html>

Reply by email

Felipe Monteiro de Carvalho
to Arí Ricardo Ody

2011/7/30 "Ar? Ricardo Ody" :

Copy ?browseslqiteprj.exe?, dbteste.db and slqite3.dll to the directory create in the item 6 above;

Which sqlite3.dll? You should use a sqlite3.dll compiled for wince-arm as the one which you can download here:

http://wiki.lazarus.freepascal.org/WinCE_Programming_Tips#Pre-compiled_sqlite_dll

And you are also placing your dll in a wrong position, please read here:

http://wiki.lazarus.freepascal.org/WinCE_Programming_Tips#Current_Directory_and_Placement_of_DLLs

Show quoted text 6 lines
Double click in the ?browseslqiteprj.exe?. Windows Mobile asks for authorization because my executable is not of known author. I click ?yes?. Then I receive the message ?'browsesqliteprj' is not a valid Windows CE application? May someone tell me what is the problem?

I documented this here:
http://wiki.lazarus.freepascal.org/WinCE_Programming_Tips#The_error_message:_SomeProject_is_not_a_valid_Windows_CE_application

But in general, as a first step you should try to run the application in the emulator. And only after in the real device.

Is there a special DLL to use SQLite in windows CE(or mobile)?

Windows CE is not the same operating system as desktop Windows. You cannot just copy a binary from Windows, it needs to be compiled for the Windows CE operating system. This is not only valid for your program, but also for all DLLs which it uses.

Is there a way of make windows mobile show lazarus programs execution errors? As they are showed in windows or linux?

I don't understand this question, your program hasn't yet started to execute. It error message that you see is generated by the operating system. But if the program had started to run, then exceptions would be shown in message boxes by the LCL.

Felipe Monteiro de Carvalho

Reply by email

Sven Barth
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 13 lines
2011/7/30 "Ar? Ricardo Ody": > Copy ?browseslqiteprj.exe?, dbteste.db and slqite3.dll to the directory > create in the item 6 above; Which sqlite3.dll? You should use a sqlite3.dll compiled for wince-arm as the one which you can download here: http://wiki.lazarus.freepascal.org/WinCE_Programming_Tips#Pre-compiled_sqlite_dll And you are also placing your dll in a wrong position, please read here: http://wiki.lazarus.freepascal.org/WinCE_Programming_Tips#Current_Directory_and_Placement_of_DLLs

Better use one of those: http://www.parmaja.com/downloads/sqlite3/

They are more up to date than the 3.2.2 on the FPC's FTP ^^

Regards,
Sven

Reply by email