On Wed, 17 May 2006 22:39:05 +0100
Colin Western <[EMAIL PROTECTED]> wrote:
> I am encountering problems on Fedora Core 5, in that lazarus crashes on
> displaying some design time forms. The problem seems to be in the
> JITForms.pp the code arounf line 920:
>
>CodeTemplate:=MethodAddress('DoNothing');
>CodeSize:=100; // !!! what is the real codesize of DoNothing? !!!
>GetMem(NewCode,CodeSize);
>Move(CodeTemplate^,NewCode^,CodeSize);
>
> creates some new code on the heap, which exec-shield does not like. It
> can be fixed as root by:
>
> echo 9 >/proc/sys/kernel/exec-shield
>
> (The default value is 11 on my system) but I was wondering if there was
> a better way to fix this. Reading a bit about exec-shield indicated that
> executable code on the heap was not portable, so this problem could
> appear elsewhere.
It is planned to use virtual events in the designer. Then the above will not
be needed anymore.
This touches TReader, TWriter, OI and the TMethodPropertyEditor.
Mattias
_
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives