I have two executables. Executable A has an User Interface and at the same time exposes an object to other applications. A is configured as a standalone ActiveX exe and the class in A is configured to be MULTIUSE. App B uses the object exposed by A. App B also has an User Interface.
I use the two apps in the following way. I start App A first, then shell App B (with the Shell function) from within App A. I use app A as a container for app B (A becomes the parent window for B). Then in App B I use the "set objxx as New clsAppA" statement to create an instance of the object and use it.
The problem is...when I do this from the debug environment (running app A in IDE and shelling B as an Exe), I end up with two instances of App A. It appears that when App B creates the object and uses it, this action generates another instance of the App A server. I thought that the "multiuse" selection on the class should prevent this from happening. If I run the exe version of App A (running the compiled App A ) then I don't get the extra instance. What's going on here and how do I fix it?
Any help would be appreciated