[Lazarus] RE : RE : FPC_REQUIRES_PROPER_ALIGNMENT defined on Solaris causescrash in lazarus

Ludo Brands ludo.brands at free.fr
Sat Jul 2 20:12:09 CEST 2011



> 
> The define FPC_REQUIRES_PROPER_ALIGNMENT and the types TTypeData and 
> TPropData are definitely FPC and not Lazarus, so you should 
> report it as 
> a FPC bug.
> 

But lazarus is assuming they are packed... 

Rtl/objpas/typinfo.pp contains some helper functions to get PropInfo from
Typeinfo. They are using constructs like
PPropInfo(aligntoptr(pointer(@Result^.Name)+byte(Result^.Name[0])+1));.
Shouldn't Lazarus do the same?

Ludo





More information about the Lazarus mailing list