Sergey,
I do use dodefault() in the destroy, but it's after trying to set the value to .null.
Define class myClass ...
hidden oControl_Next
Procedure Destroy()
this.oControl_Next = .null. << "property oControl_Next not found" in runtime
return dodefault()
EndDefine
>Bill,
>
>Do you've DODEFAULT() or '::' in the subclass Destroy event? IIRC, it could case such error.
>
>>I'm using VFP 7.0
>>I have a hidden property that disappears before the Destroy() method during runtime.
>>
>>Define class myClass ...
>> hidden oControl_Next
>>
>> Procedure Destroy()
>> this.oControl_Next = .null. << "property oControl_Next not found" in runtime
>>EndDefine
>>
>>class works fine during development, just in runtime it crashes.
>>
>>If I change the property to protected, then it works in runtime also.
>>
>>I've verified that the property is not used anywhere in any subclasses.
>>
>>TIA
Bill Morris