Actually, I was wrong, the object is not being destroyed. In debugger, ThisForm still relates to the closing form and the object in question is still there.
>I've tried that - put ThisForm in every dot-referenced position. Also tried loThisForm=ThisForm and WITH loThisForm - still didn't work. I've found that it's a timer on the closing form that is firing and cannot find an object (obviously being destroyed between lines). I've put IF TYPE("object")='O' and still no joy.
>>
>>
>>WITH/ENDWITH keeps some kind of object reference around. Try your code without the WITH/ENDWITH and see if the problem goes away.