[lazarus] Compile freezes up ??
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Oct 24 05:31:48 EDT 2002
On Wed, 23 Oct 2002 20:25:39 -0400
"Andrew Johnson" <aj_genius at hotmail.com> wrote:
> > > Does anyone know a better solution or think that this solution
> > > will break compatibility too much?
> >
> >On second thoughts, if we are aiming for Delphi compatibility, and
> >this breaks aspects of that compatibility perhaps it's not such a
> >good idea....
>
> Well as to this one.. I just figured it out.. this will not break
> compatibility. I new we didn't any extra proprty for this one. The
> ONLY reason menu's uses Forms, is to set its parent menu to nil on
> destroy. This should be done in TCustomForm.Notification anyway!
You are right. The current LCL implementation is incompatible to the
VCL.
So, we can break a circle and improve compatibility. :)
Committed.
Mattias
> All we need to do is
> remove the Form code from menus and remove controls and forms from
> menu's uses. Then On TCustomForm.Notification do
>
> If (Operation = opRemove) and (AComponent = Menu) then Menu := nil;
>
> And boom. One less circle, with no compatibility lost! At least it
> works fine on my system.
>
> (I Would commit this right now myself, but I can't access CVS from
> the current internet connection)
>
> Andrew
>
> _________________________________________________________________
> Choose an Internet access plan right for you -- try MSN!
> http://resourcecenter.msn.com/access/plans/default.asp
>
> _________________________________________________________________
> To unsubscribe: mail lazarus-request at miraclec.com with
> "unsubscribe" as the Subject
> archives at http://www.lazarus.freepascal.org/mailarchives
More information about the Lazarus
mailing list