Hi,
I wrote some programms using Lazarus some time ago. I've used Lazarus 0.9.28.2 (fpc 2.2.4) and 0.9.30 (fpc 2.4.2). Apps were tested on Windows Mobile 6 emulator (CE 5.2) and on real devices (i.e. Symbol MC9090G, Motorola MC3190, Honeywell Dolphin 9700). Everything was working OK.
Now I have problem with the same apps but it's installed on Motorola MC2180 (Marvell PXA 320, WindowsCE 6.0). First, my GUI applications look strange on terminal - they have no custom icon (just default icon for a application in OS). When I click on such icon nothing happens - no error window, no beep, no result.
I installed today Lazarus' latest version 1.0.8 (fpc 2.6.2). I've preperred simple app with just one form and configured Lazarus to compile to WinCE. Effect is just the same like before.
I've created console application with default content and ran it in command prompt on terminal. Program executed but again with no output.
When I shortened the default console program to this only:
program project1;
begin
Write('- TEST -');
end.
I get popup error window with some numbers.
When program was:
program project1;
uses
SysUtils;
begin
Write('- TEST -');
end.
in result I got EInOutError: File not open
When I changed program to this:
program project1;
var
old, f: TextFile;
begin
Assign(f, '/file.txt');
Rewrite(f);
old := Output;
Output := f;
Write('- TEST -');
Output := old;
CloseFile(f);
end.
it worked.
I don't know how this issue with console application is connected to "silent death" of forms applications. But I have no idea how to solve my problem and don't know how to configure Lazarus to compile properly to WindowsCE 6.0.