TTICalendar crashes when cross compiled and run on arm WIN CE also TI memobox error
Original Reporter info from Mantis: picstart
-
Reporter name: Doug kennedy
Original Reporter info from Mantis: picstart
- Reporter name: Doug kennedy
Description:
All the form has is a calendar control placed on it ( no user code in events or anywhere)
I runs in WIN32 ( doesn't crash)
It compiles for WINCE and cross compiles to ARM winCE4.2
On the ARM device it errors at run time with Access violation
Also RTTI memobox runs but differs from win32
TImemo1.text:=TImemo1.text+'test';
TImemo1.text:=TImemo1.text+'test';
gives testtest on win32 and
test
test for WinCE
lazarus 0.9.26.2 fpc 2.2.2
unit Unit1;
{mode objfpc}{H+}
interface
uses
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
RTTICtrls;
type
{ TForm1 }
TForm1 = class(TForm)
TICalendar1: TTICalendar;
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
implementation
{ TForm1 }
initialization
{$I unit1.lrs}
end.
Steps to reproduce:
All the form has is a calendar control placed on it ( no user code in events or anywhere)
I runs in WIN32 ( doesn't crash)
It compiles for WINCE and cross compiles to ARM winCE4.2
On the ARM device it errors at run time with Access violation
Additional information:
The behavior of combo memo boxes is very inconsistent between Win32 and WinCe
Almost any control that has the following behavior in Win32 will behave differently in WinCe. The example here is TImemobox but memobox or listbox and maybe others I haven't tried all will behave differently.
TImemo1.text:=TImemo1.text+'test';
TImemo1.text:=TImemo1.text+'test';
gives testtest on win32 and
test
test
for WinCE
Mantis conversion info:
- Mantis ID: 14298
- OS: CE
- OS Build: 4.2 net
- Build: lazarus 0.9.26.2 fpc 2.2.2
- Platform: ARM
- Fixed in version: 0.9.27 (SVN)
- Fixed in revision: 21286 (#3dcceaa5)