Recent

Author Topic: TMultiPropertyLink the RTTI contols, all it does is crash on start?  (Read 421 times)

jamie

  • Hero Member
  • *****
  • Posts: 7891
Can someone please explain to me what this does?

I have successfully crashed the IDE using the normal OI functions which put the IDE into a loop and finally access violation.

 No matter what I do, just simply drop it on the form and run, it crashes in the RTTI source code where it is looking for a

a "Link" property.

 If I run without debug, you don't see this but still this control brings down the IDE if you can playing with it.

 It is looking for a Component that does not exist and somehow the code things it does and tries to find the Property of "Link".

Jamie

The only true wisdom is knowing you know nothing

egsuh

  • Hero Member
  • *****
  • Posts: 1825
Re: TMultiPropertyLink the RTTI contols, all it does is crash on start?
« Reply #1 on: November 30, 2025, 06:57:27 am »
You may ignore that error message.

It seems that MultiPropertyLink searches for Link property of every component whose parent is MultiPropertyLink.ParentControl, e.g. TPanel. RTTI components have Link property but non-rtti components don't have Link property. The warning or error message seems to be issued for those non-rtti components.

With Rtti controls parented by MultiPropertyLink.ParentControl, you only have to define Link.TIPropertyName, and not TIObject. By assigning MultiPropertyLink.TIObject, Link.TIObject property of all the RTTI contols that are linked to the MultiPropertyLink is set to the component of MultiPropertyLink.TIObject.

jamie

  • Hero Member
  • *****
  • Posts: 7891
Re: TMultiPropertyLink the RTTI contols, all it does is crash on start?
« Reply #2 on: November 30, 2025, 11:23:32 am »
That isn't the only issue at hand. If you target a non-Rtti control as the component and then delete that control before un-targeting from the TMultiPropertyLink, it generates errors and, in some cases, locks the IDE into a loop then crashes.

 Looking at the sources, it appears, or at least I don't see it, setup done for the FreeNotification events and that can lead to other issues of course.

Jamie

The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018