Sony,
Have you stepped through the code in the debugger to see what causes the form to destruct? It's quite possible for code in myClass to cause the form to be released. CLEAR ALL is one candidate to look for.
>I have a form with a grid and a command button. the button runs some code based on the selected item in the grid. The code is similar to this
>
>loProcess = Newobject("myClass", "mClassLib.Prg")
>loProcess.Process()
>loProcess=.NULL.
>CLEAR CLASS myClass
>RETURN
>
>My problem is, the form gets released , even without the RELEASE command. There is something in the class that causes this behaviour. There is no reference to BINDEVENT or Thisform in the class at all. If anyone can think of a immediate cause, that would be of great help.