INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: How to release out-of-process MC11 instance?  (Read 1870 times)

Zoner

  • Regular Member
  • World Citizen
  • ***
  • Posts: 198
  • nothing more to say...
How to release out-of-process MC11 instance?
« 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?
Logged

Zoner

  • Regular Member
  • World Citizen
  • ***
  • Posts: 198
  • nothing more to say...
Re: How to release out-of-process MC11 instance?
« Reply #1 on: July 26, 2005, 07:43:22 am »

Anyone?
Logged

John Gateley

  • Citizen of the Universe
  • *****
  • Posts: 4957
  • Nice haircut
Re: How to release out-of-process MC11 instance?
« Reply #2 on: July 27, 2005, 03:06:23 pm »

Give MC 11.0.310 a try

j

Zoner

  • Regular Member
  • World Citizen
  • ***
  • Posts: 198
  • nothing more to say...
Re: How to release out-of-process MC11 instance?
« Reply #3 on: July 28, 2005, 09:18:24 am »

No joy, I'm afraid.  Here's what I'm doing:

Code: [Select]
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.
Logged

Bill Kearney

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 373
Re: How to release out-of-process MC11 instance?
« Reply #4 on: July 28, 2005, 10:35:21 am »

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. 
Logged
Pages: [1]   Go Up