Peter,
This is happening because there is some reference to an internal object being held. THere is a tool on my website that will help you track it down. There is a link here in the files section to get it, and a little more detail in an article on my site.
It's also possible if you are using multiple calls to GETPEM() and/or PEMSTATUS() that a VFP bug is getting you. If this is the case you have to pull the value out of those functions to a local memvar.
>Hi Guys
>
>I have just upgraded a VFP 5.0 application to VFP6 - more fool me!
>
>Since the upgrade users are using the close button (the X at the top right of the form) to close a form. Trouble is that the form does not close - the X button is greyed out but form is still active.
>
>What the heck is going on!