<div dir="ltr">I encounter same trouble in Lazarus 1.0, and not remember, that it appear in 1.2+ Maybe there some kind of code degradation?<div><br></div><div>Workaround is:</div><div>1. Assign TFrame.Parent after creating TFrame, not in TFrame constructor.</div><div>2. When you create controls programmatically, make their parent (form, frame, panel..) Visible := False</div><div>3. Do not create many similar frames instances, re-use already created frames if possible. For example, for TPageControl with many similar frames better using TTabControl and change content in one frame. And when that frame not needes, just make it invisible.</div></div>