wile64 ha scritto:
Hi,

We have a problem on the forum french and I ask the question here by the lack of response ;)

With this file structure, create with lazarus 0.9.22/fpc 2.0.4:
/
/

const MaxVoies = 4;
type

/TLigneMesureBin  = record
   T: extended;
   Ic: Integer;
   Valeur: array[1..MaxVoies] of extended;
   end;

FichBVB: file of TligneMesureBin;/

It is impossible to read this file with Lazarus 0.9.24/fpc 2.2.0.

And create a file with Lazarus 0.9.24/fpc 2.2.0 on linux Is not read by Windows version (It is not the same) ??? And depending on the machine the file is not the same size (56 bit, 64 bit) ???


There might be a difference in "extended" size in different platform, but it might depend on different word/double-word alignment.

Try with

TLigneMesureBin = packed record

to get rid of the alignment problem.

Giuliano

--
Giuliano Colla

Whenever people agree with me, I always feel I must be wrong (O. Wilde)

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

Reply via email to