* point a IF PEMSTATUS(THISFORM, 'oMainPane', 5) and ; vartype(thisform.oMainPane.name) = 'C' *point b thisform.removeobject( 'oMainPane' ) ENDIFNow, let me provide further information: I have wait windows for debugging at points a and b and the object really IS there. After the error occurs and I suspend, I test again and the object is in fact NOT there.