It looks like the problem in the test code only occurs if the object being removed is in the call stack. For instance:
remove called execute
execute indirectly (event) calls destroy of remove
destroy can't evaluate this.parent
but in the same regards
report called execute
execute indirectly (event) calls destoy of report
report can evalute this.parent
The only difference is one is in the call stack and the other isn't. Don't know if this helps, but maybe it will.
I'll keep looking as well
Thanks
>>BTW, does your menu classes use the system menu (_MSYSMENU)?
>>
>>Thanks
>
>For the main VFP window, yes it uses _MSYSMENU, although for SDI forms it doesn't.
Brian McCord
President
Sagacity Systems