Recent

Author Topic: "Bus error or misaligned data access" in ReadXMLFile  (Read 11712 times)

Lacak2

  • Guest
"Bus error or misaligned data access" in ReadXMLFile
« on: February 20, 2009, 01:09:11 pm »
Hi,
I encounter above mentioned message in followinfg example code /compiled for WinCE , ARM CPU using cross compiler/:

var ss: TStringStream; XMLDoc: TXMLDocument;
begin
        ss:=TStringStream.Create('<?xml version="1.0"?>'#13'<e1><e2>Text</e2></e1>');
        try
           ss.Position:=0;
           XMLDoc:=nil;
           ReadXMLFile(XMLDoc, ss);
           XMLDoc.Free;
        finally
         ss.free;
        end;
end;

Is there a way how to fix it ?
Can anybody confirm it ?

I have read http://wiki.lazarus.freepascal.org/Windows_CE_Development_Notes#Alignment_problems
but it seems, that problem is in "dom" or "xmlread" unit.

TIA
-Laco.

Loesje

  • Full Member
  • ***
  • Posts: 168
    • Lazarus Support website
Re: "Bus error or misaligned data access" in ReadXMLFile
« Reply #1 on: February 22, 2009, 11:46:31 am »
So you have to apply the principles of alignment on wince to the dom and xmlread unit.

Or you can create a bug report, and hope that someone else will do that.

Lacak2

  • Guest
Re: "Bus error or misaligned data access" in ReadXMLFile
« Reply #2 on: February 23, 2009, 12:23:39 pm »
Or you can create a bug report, and hope that someone else will do that.
I will hope  O:-) http://mantis.freepascal.org/view.php?id=13232

Paul Ishenin

  • Sr. Member
  • ****
  • Posts: 274
Re: "Bus error or misaligned data access" in ReadXMLFile
« Reply #3 on: February 23, 2009, 02:14:28 pm »
I moved your bug report to the fpc project.

Lacak2

  • Guest
Re: "Bus error or misaligned data access" in ReadXMLFile
« Reply #4 on: February 23, 2009, 04:16:30 pm »
I moved your bug report to the fpc project.
Thank you ... I see, that now is my bug-report marked as Duplicate/Resolved and 12137 bug report as Fixed/Resolved ... Fixed in version 2.3.1 (but target version is 2.4.0).

So when I want to test it, where can I download snapshots ?
On http://snapshots.lazarus.shikami.org/lazarus/ are only snapshots with fpc 2.2.x
(but as I understand I need at least fpc 2.3.1)
When will be there available snapshots, which uses fpc 2.3.1 ?

TIA
-Laco.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: "Bus error or misaligned data access" in ReadXMLFile
« Reply #5 on: February 23, 2009, 08:53:16 pm »
There is just no html interface for them, but snapshots for 2.3.1 exists on the ftp-server: ftp://ftp.hu.freepascal.org/pub/lazarus/

Lacak2

  • Guest
Re: "Bus error or misaligned data access" in ReadXMLFile
« Reply #6 on: February 26, 2009, 03:25:56 pm »
There is just no html interface for them, but snapshots for 2.3.1 exists on the ftp-server: ftp://ftp.hu.freepascal.org/pub/lazarus/
Would it be possible to add link to this ftp on snapshot web page ?
It seems like useful thing.

 

TinyPortal © 2005-2018