Dmitry,
Glad you found it was that simple. :)
Beth
>Hi Beth,
>
>The solution was simpler. I had a "wrong" line in the sub-application that was setting Path to different folders. I guess SET PATH is not session specific and when the control was returning to the Main application was not finding the libraries. Once I commented the SET PATH line, all started to work.
>
>Thank you very much for your help.
>
>>Hi Dmitry,
>>
>> Sounds like you have the same class libraries in both your main application and the sub-application that you are calling. I think you need to reload your libraries after the sub-application unloads to prevent this problem. This is one way. Another way would be to have different libraries in the sub-app.
>>
>>HTH
>>Beth
>>
>>>I was wondering if there is a right and wrong method of calling an .APP file from a program menu?
>>>
>>>Here is the situation:
>>>I have a small project compiled into .APP file.
>>>I call this .APP file from the menu of an application:
>>>
>>>do MyAddOn.app
>>>
>>>As soon as the control returned to the main program, I can't execute anything in the main program. The first error I get is that my ErrorLib.vcx cannot be found. I checked the value of SET("CLASSLIB") before and after calling the .APP file and it seems to be the same.
>>>
>>>What could be wrong in my syntax of calling .app file?