Hello Dmitry, <<< 24.4.2009 16:17 - dmitry boyarintsev "skalogryz.li...@gmail.com" >>> >> Stream.Read (HeaderLen, SIZEOF (HeaderLen)); >> >> where information header's length is stored into binary.
db> HeaderLen is integer, right? db> have you checked HeaderLen being large that sizeof(TSomeHeader) Of course, that I know now that the problem is, that the binary which is parsed contains bigger size that size if Header is. db> it's possible, especiialy for Mac files, because of PowerPC and some db> structures may use Big-endian byte order, rather than Intel db> (little-endian) This I know, but are there other differences? I mean sizes of datatypes between Win&Linux and Mac (intel/ppc)? -- Best regards, TRoland http://www.rotursoft.sk http://exekutor.rotursoft.sk _______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus