Jean-Rene,
Have you tried
oForm.Release()
to release the form? I've found that on forms this can avoid problems with controls not releasing correctly.
HTH
Barbara
>I have a form saved as a class with OLE public in VFP5.0. This form is use as interface for my backend. If I call this form as an OLE, and set some value in one of the text box, when I what to release the for with "Release oForm" the form do not want to release. If I do not set any value of text box it work ok.
>
>oForm = CreateObject("FoxFW.Fox")
>oForm.Visible = True
>oForm.MyTextBox.value = "Hello"
>release oForm
>
>It compiled as OLE EXE ( Out process )
>
>The same code work in VFP6.0 but unfortunately VFP6 is a not a option for us at the moment.