[Lazarus] RE : RE : RE : RE : RE : FPC_REQUIRES_PROPER_ALIGNMENTdefinedonSolariscausescrash in lazarus
Ludo Brands
ludo.brands at free.fr
Sun Jul 3 16:54:49 CEST 2011
> [TJITForms.DoCreateJITComponent] Error Error: CreateNewClass
> new aligned
> TypeData
> Stack trace:
> $00719F38 TJITCOMPONENTLIST__CREATENEWJITCLASS, line 1473 of
> /usr/local/share/lazarus-newstable/designer/jitforms.pp
I haven't run into that one. Looking at jitforms.pp, the code checks whether
the PTypeData points to the location after Typeinfo.name and raises the
exception if it isn't the case. To be confirmed by the developer that wrote
the code but I guess the purpose was to anticipate alignment problems such
as the one I fixed. If that is the case then the check could simply be
removed.
While I was trying to provoke a misalignment in jitforms.pp by changing the
name of the component I ran into another alignment problem in StdCodeTools.
Yet another location where pointer arithmetic is used to get ppropinfo from
typedata. I guess we'll have to weed them out as they are encountered...
Ludo
More information about the Lazarus
mailing list