Hi typhoidmary,
I was able to reproduce the behavior that you are describing by using the example you attached. I tried launching your two dynamically called VIs from the shipping subpanel example called "viewer.vi". When I did that, the ActiveX container always stayed visible. This makes me think that the cause of your issue is partly due to the queue functionality and the way you are handling the subpanel.
I noticed that the chances for the ActiveX container to stay on the front panel increased if I waited a few seconds between switching between the dynamic VIs.
Since you are using Global Variables there might be a risk of race conditions. To further troubleshoot, you should try adding breaks different places in your code to overcome possible race conditions.
Let me know what you find, thanks.
- Philip Courtois, Thinkbot Solutions