On Mon, 09 Jul 2007 16:43:07 +0000
Mark Morgan Lloyd <[EMAIL PROTECTED]> wrote:

> So close, but I'm afraid I need a hand here :-/
> 
> I've got 0.9.22 and 0.9.23 (version of 20070706) installed in conjunction 
> with 
> FPC 2.1.4 on x86 and SPARC systems (PIII and Ultra-10 respectively). Both 
> systems have Linux 2.6, the x86 is Debian 3.1 "Sarge" and the SPARC is Debian 
> 4.0 "Etch".
> 
> On both systems Lazarus builds without significant trouble and runs. A simple 
> "Hello World!" with output to a TMemo behaves as expected.
> 
> Moving a realistic demo program from Delphi/Lazarus on Win-32 compiles and 
> runs on the x86 system. Moving it onto the SPARC system allows it to compile 
> OK but results in a bus error when it tries to run. Stepping through, the 
> problem appears to be here:
> 
> constructor TCustomStringGrid.Create(AOwner: TComponent);
> begin
>    inherited Create(AOwner);
>    with DefaultTextStyle do begin
>      Alignment := taLeftJustify;              // <===== bus error here
>      Layout := tlCenter;
>      Clipping := True;
>      //WordBreak := False
>    end;
>    ExtendedSelect := True;
> end;
> 
> It turns out to be easy to get Lazarus on SPARC to fail: start out with a 
> virgin project and drop a TStringGrid onto the form. However this appears to 
> be a designer issue and using forms etc. built on a different system is more 
> robust- it doesn't fail until runtime.
> 
> Being aware of previous discussion e.g. thread at 
> http://lists.freepascal.org/lists/fpc-devel/2004-October/004022.html and 
> assuming that this is an byte/word alignment or packing issue I have spent 
> the 
> afternoon tinkering but can't get simple Pascal (i.e. not relying on the 
> behavior of Lazarus components) to fail.
> 
> I can put a bit more time into this, but I don't know SPARC very well at the 
> machine level and my experience with gdb is limited.

Can't you copuy the TTextStyle declaration (and dependants) into a test program 
and assign the alignment field as in the snippet?

Vincent

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to