Mattias Gaertner schreef:
On Sun, 15 Apr 2007 23:01:28 +0200
Vincent Snijders <[EMAIL PROTECTED]> wrote:

Questions:
* Is this code actually to be executed? Was it designed so that the
IDE could execute this code at design time? I think the answer is yes.

Short answer: yes
Long answer: It is the really dirty hack in the IDE.
It was done, because assigning a 'real' TMethod to an event has the
advantage that all OI, RTTI and all streaming code work without hacks or
additions.

As expected.


* I tested on windows XP 64. Does anybody know if the 64 bits version
of windows works differently in this respect than the 32 bits
version? For example does it proctect the memory on the heap from
execution?


Does anybody else *know* this? I am just guessing about the actual cause of the crash.

I did an additional test. I replaced
  Result.Code:=NewCode;
by
  Result.Code:=CodeTemplate;
in TJITComponentList.CreateNewMethod. This fixed the crashes (but probably breaks something else).

If yes, then it is finally time to use the Delphi half Assigned trick
and to check and extend the whole OI, RTTI and Streaming code to support
this.

How hard is this? Can you explain the half Assigned trick? Or is it faster for you to implement it. ;-)

Vincent

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

Reply via email to