wince
Moderators: gto, cipto_kh, EgonHugeist, mdaems
wince
Your ZeosLib DBO Version: 6.6.1 beta
The IDE you are using: Lazarus
Version (and maybe patchlevel) of the IDE: 0.9.23 beta
The database you are using: MySQL
Version of the database: 5
Used protocol:
[hr]Error description and post
I use zeos 6.6.1 for access to mysql 5 databases with lazarus 0.9.23 from a linux computer. All works OK. I will soon need to write a small client application for a PDA to access databases on the same server. Is there a Zeos port for windows ce?
The IDE you are using: Lazarus
Version (and maybe patchlevel) of the IDE: 0.9.23 beta
The database you are using: MySQL
Version of the database: 5
Used protocol:
[hr]Error description and post
I use zeos 6.6.1 for access to mysql 5 databases with lazarus 0.9.23 from a linux computer. All works OK. I will soon need to write a small client application for a PDA to access databases on the same server. Is there a Zeos port for windows ce?
wince
Well, lazarus is just an open source IDE (a clone of delphi) on top of FPC 2.2.0. It can produce arm-wince applications from windows XP, I've tried it with success. But as soon as a zeos connexion is added on the form, it doesn't compile and shows errors. Part of zeos source code use asm instructions which seem not compatible with arm processor.
- mdaems
- Zeos Project Manager
- Posts: 2766
- Joined: 20.09.2005, 15:28
- Location: Brussels, Belgium
- Contact:
If I didn't overlook something the only asm instruction is in ZCollections.pas
Does somebody know a way to avoid this using plain object pascal (FPC)? Preferably compatible with Delphi, but just indicate if not.
Can you also state (dis)advantages of the alternative?
Mark
Code: Select all
{**
Raises a collection error.
@param Msg an error message.
@param Data a integer value to describe an error.
}
class procedure TZCollection.Error(const Msg: string; Data: Integer);
function ReturnAddr: Pointer;
asm
MOV EAX,[EBP+4]
end;
begin
raise EListError.CreateFmt(Msg, [Data]) at ReturnAddr;
end;
Can you also state (dis)advantages of the alternative?
Mark
I need to make applications for WinCE under Lazarus too.
Is there a Zeos port for WinCE?
Regards.
I have the same problem than you.gibbe wrote: But as soon as a zeos connexion is added on the form, it doesn't compile and shows errors. Part of zeos source code use asm instructions which seem not compatible with arm processor.
Is there a Zeos port for WinCE?
Regards.
Two more to the WinCE Club
Hello folks,
our company is very interested in using Zeos on PocketPCs.
If it was possible and I was successfull, I would post a patch to the Zeos code to bring it to work on WinCE.
Still no success but there are some steps already made.
1) Concerning the assembler instruction.
I don't know if it's well written but as I read the documentation to the ARM processor assembly language and another post about "porting" to 64-bit Intel-like processors, the only one assembler instruction, as mentioned above, should change to conditional code – something like this:
As you see, I'm pretty unsure about what ARM register is the right equivalent to Intel 32-bit i386's EBP. Maybe I'm wrong in other aspects. But this code at least compiles.
2) Concerning errors raised during debugging on the start of the debuggee or program silently vanishing from memory directly after its start while running without debugger.
I thought this could be related to the assembler instruction mentioned above. Could it? Could not? Who knows? Me not yet. Further research needed. I'll try to track down the unit, procedure and maybe line that causes the crash just by starting (loading Zeos' units into memory).
But there is one evidence already there. Just adding the ZConnection unit to a uses clause wherever in your project causes your program to crash in the already mentioned manner, just after its start.
Every help with our effort would be gladly appreciated!
our company is very interested in using Zeos on PocketPCs.
If it was possible and I was successfull, I would post a patch to the Zeos code to bring it to work on WinCE.
Still no success but there are some steps already made.
1) Concerning the assembler instruction.
I don't know if it's well written but as I read the documentation to the ARM processor assembly language and another post about "porting" to 64-bit Intel-like processors, the only one assembler instruction, as mentioned above, should change to conditional code – something like this:
Code: Select all
{$IFDEF WIN64}
MOVQ 32(%RBP),%RAX
{$ELSE}
{$IFDEF WINCE}
LDR R0, [R13, #4]
//LDR R0, [R11, #4]
{$ELSE}
MOV EAX, [EBP+4]
{$ENDIF}
{$ENDIF}
2) Concerning errors raised during debugging on the start of the debuggee or program silently vanishing from memory directly after its start while running without debugger.
I thought this could be related to the assembler instruction mentioned above. Could it? Could not? Who knows? Me not yet. Further research needed. I'll try to track down the unit, procedure and maybe line that causes the crash just by starting (loading Zeos' units into memory).
But there is one evidence already there. Just adding the ZConnection unit to a uses clause wherever in your project causes your program to crash in the already mentioned manner, just after its start.
Every help with our effort would be gladly appreciated!
-
- Expert Boarder
- Posts: 158
- Joined: 06.11.2005, 01:43
Still no success
We changed our attention to the Lazarus' ODBC component.
Alas, it fails to load data from a Sybase ASA9 query on WinCE.
By now, we still don't have a working database access.
Maybe we shall return to Zeos or write our own lightweight driver.
Still it seems to be the easiest way to correct or rework the ODBC connection component.
Alas, it fails to load data from a Sybase ASA9 query on WinCE.
By now, we still don't have a working database access.
Maybe we shall return to Zeos or write our own lightweight driver.
Still it seems to be the easiest way to correct or rework the ODBC connection component.
-
- Expert Boarder
- Posts: 158
- Joined: 06.11.2005, 01:43
- mdaems
- Zeos Project Manager
- Posts: 2766
- Joined: 20.09.2005, 15:28
- Location: Brussels, Belgium
- Contact:
Did you have a lookhere ?
We did replace the ASM call so fpc should handle it platform specific. (Putting the work on to the FPC team )
If you need a package instead of SVN : the stable 6.6.3 release file is available in the snapshots directory. It's a draft that will probably will be just renamed (90% chance).
Please report if this was a good fix.
Mark
We did replace the ASM call so fpc should handle it platform specific. (Putting the work on to the FPC team )
If you need a package instead of SVN : the stable 6.6.3 release file is available in the snapshots directory. It's a draft that will probably will be just renamed (90% chance).
Please report if this was a good fix.
Mark
-
- Expert Boarder
- Posts: 158
- Joined: 06.11.2005, 01:43
Hi Mark
I'll try and use Zeos tomorrow and see if I can get it to work on WinCE.
Cigydd - I have Sqlite database on the device. It's very easy to use sqlite, just copy sqlite dll to the device where your exe is and then use sqlite database file by setting up some properties in TSlite dataset component.
Sandeep
I'll try and use Zeos tomorrow and see if I can get it to work on WinCE.
Cigydd - I have Sqlite database on the device. It's very easy to use sqlite, just copy sqlite dll to the device where your exe is and then use sqlite database file by setting up some properties in TSlite dataset component.
Sandeep
-
- Fresh Boarder
- Posts: 2
- Joined: 31.08.2008, 23:39
wince AND QT
HI
Zeoslib its great lib ,THANK for work.
real like it,but I need to make applications for WinCE and QT under Lazarus too. how?
Zeoslib its great lib ,THANK for work.
real like it,but I need to make applications for WinCE and QT under Lazarus too. how?