I’m working on a system that requires the generation of frames at runtime. As a result of my research i have the following question relating to RTTI.
A frame (and its dependent frames) has to be explicitly added to the project where it will be used.
TRttiContext.GetTypes will not report the existence of this frame class unless and instance has been created at design time.
Is this because?
a) RTTI only exposes actual instances of classes?
b) The compiler optimization only links in units that are actually used in code?
In other words, how do i access classes via RTTI in units that are added to a project but not required until runtime?