Sign in Join

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

Mailing lists / fpc-pascal / 2006-12

Good revision on wince cross-compiler

8 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 was testing fpc revisions for wince, based on the page: http://www.freepascal.org/wiki/index.php/Tested_Unstable_Revisions

I first tryed 5431, but it doesn´t compile correctly.

Next I tryed 5370. Everything compiles fine, but when I tested a hello world lazarus application it runs, but shows no output (doesn´t create the window). And that app was working perfectly with some very old revisions.

Does anyone know a good revision that works with Lazarus-WinCE?

thanks,

Felipe Monteiro de Carvalho

Reply by email

TOndrej
to Felipe Monteiro de Carvalho: I was testing fpc revisions for wince, based on the page:…
Felipe Monteiro de Carvalho wrote
Does anyone know a good revision that works with Lazarus-WinCE?

A few weeks ago I experimented and found out that fpc 5389 and Lazarus 10204 worked for me on arm-wince. I'm sticking to these revisions for the time being, making my local modifications as needed.

However, my Lazarus projects are probably not typical. I only have a few very basic LCL-based windowed applications for testing and the main work consists of DLLs exposing ported Delphi code to a .NET CF host application.

HTH
TOndrej

Reply by email

Felipe Monteiro de Carvalho
to TOndrej

Hello,

TOndrej wrote
A few weeks ago I experimented and found out that fpc 5389 and Lazarus 10204 worked for me on arm-wince. I'm sticking to these revisions for the time being, making my local modifications as needed.

I don´t know why but this combination didn´t work for me. Console applications work correctly, but LCL windowed app did not. It at least shows a error message, something went wrong on the initialization on a unit. (it complains about the begin on the program file, so I guess this is the problem).

FPC 5191 worked much better, but using latest subversion lazarus the app loads, shows on screen, and then crashes. The same with 10204. I will test with even older revisions to see if they work.

Felipe Monteiro de Carvalho

Reply by email

Felipe Monteiro de Carvalho
to Felipe Monteiro de Carvalho

Ok, I just found out that the OnCreate of that program was creating a TCustomControl descendent. That seams to crash the application on wince. Removing it and having only a simple program with a form and some buttons works ok with latest subversion Lazarus =)

Felipe Monteiro de Carvalho

Reply by email

Felipe Monteiro de Carvalho
to Felipe Monteiro de Carvalho

Using 5191 I face several issues with Windows CE, namely:

* Creating a TCustomControl descendent that is declared on a small class works. If the class is big (has many methods), it crashes.

* Calling a empty class function crashes.

* Lazarus doesn´t shows correctly on the code where the exception appeared. It always shows compile errors on Interface unit. The compiler error message is ok, but it misses the correct unit.

Nevertheless, I am persistent. And I ported a beaultiful painting test application to Windows CE =)

Positive aspects:

* Free Pascal cross-compiles and links extremely fast =) About 1 second here.

* The bugs are consistent. I mean, after you know them, and make work arounds it works =)

I am attaching a screenshot.

Felipe Monteiro de Carvalho

Reply by email