>>>>
>>>>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?
>
>Are you criticizing my style of programming? <g> Seriously though, the main application works with just one form with tons of functionality built into toolbar, top menu, etc. The main form is modeless so I used public variable to reference it. I guess I learned that I need to change the approach.
Yes, as it was discussed in the recent thread you participated, it's so much better to have just one global application object than multiple global vars. You're already bitten by this <g>
If it's not broken, fix it until it is.
My Blog