INTERACT FORUM

More => Old Versions => Media Center 12 (Development Ended) => Topic started by: georgem29 on December 08, 2007, 08:03:30 am

Title: Problem creating Media Center object
Post by: georgem29 on December 08, 2007, 08:03:30 am
I'm running Media Server 24/7 on a Windows 2000 machine. I have a Perl script that automatically runs on a schedule and compiles various stats. It's been working fine for months, but fails with recent builds of Media Center. The code that instantiates the object is:

Code: [Select]
$oMC = Win32::OLE->GetActiveObject( 'MediaJukebox Application' );

unless( $oMC ) {
    $oMC = Win32::OLE->new( 'MediaJukebox Application' ) or die( "Unable to create MC object: $!\n" );
}

It will work once, but subsequent attempts to run the script just open the MC UI and fail with the 'die' error message (there's no error displayed for $!).

It fails with 380 and 386, but I'm not sure which build was the last to work. It took me a while to notice.

Any ideas?