** METHOD AddObject LPARAMETERS cName, cClass WITH This ** Add the control DODEFAULT(cName, cClass) ** Position it show it .Controls(1).Top = 1 .Controls(1).Left = 1 .Controls(1).Visible = .T. ** Set up the scroll container ._Setup() ENDWITHThen I call:
** Add the control to the container ThisForm.MyContainer.AddObject("MyClass", "MyClass")Which runs the code and crashes as it steps out. If I put a NODEFAULT after the _Setup(), it does