Try the following:
1) Release the form before releasing the variable.
2) Debug to see where you get the error message. Perhaps the form does something wrong when it gets released the first time.
Hilmar.
>I am using Visual FoxPro 6, Service Pack 3.
>
>I create 1 instance of a modal form using command:
>obj_form = NEWOBJECT(class, classlib)
>
>This works fine.
>When I am done, I release the variable obj_form to remove the form from memory.
>
>When I try to create the form a second time using the exact same command, I get the error message:
>
>'PARENT' is not an array
>
>I am modifying code in the SBT (now ACCPAC) Pro 6 Accounting system.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)