>>
>>I would be surprised if it happens just because of calling test.app. Most likely some code in the test.app causes closing of the form in the main EXE.
>>Also keep in mind that while test.app runs in the context of the main EXE, it doesn't have access to any files built into EXE, like Forms, classes, reports, e.t.c.
>
>You are absolutely correct. I used the same name for the public variable of the form class (oForm) in the test.app as in the main.exe. I guess even though the other program (test.app) is a separate small application it can step on the same public variable.
>
Why would you use public variables in the first place?
--sb--