INTERACT FORUM
Windows => Plug-in Development => Topic started by: Zoner on July 23, 2005, 03:15:06 am
-
My application is accessing MC11 using out-of-process COM. When my application shuts down, it releases the MC11 COM object, but MC11 keeps running. Even if I then manually close MC11 (using the MC11 GUI), the MC process keeps running. It seems that I cannot get MC11 to completely shutdown no matter what I do. Does anyone have a solution to this?
-
Anyone?
-
Give MC 11.0.310 a try
j
-
No joy, I'm afraid. Here's what I'm doing:
HRESULT hr = CoInitialize(NULL);
assert(hr == S_OK);
hr = MC.GetActiveObject(L"MediaJukebox Application");
if (hr != S_OK)
{
hr = MC.CreateInstance(L"MediaJukebox Application");
if (hr == S_OK)
{
MC->ShowProgram(1);
}
}
MC.Release();
delete MC;
MC = NULL;
If MC v11 build 310 is not running, then this starts MC11 build 310 and shows it, and then my program ends. After that I close down MC11, but according to task manager, it is still running.
-
To add to this, if the plugin starts MC11 this way the process is starting as a child of a SVCHOST process. If you start MC11 before the plugin then it starts in the usual user space. In addition, if it starts as a svchost child then starting MC11 again does bring up a process but one that appears to quit itself. The one inside svchost, however, does not quit properly and must be killed to stop it.
You can load the plugin on a machine without the serial link to a CAV66 and test it to see for yourself.