INTERACT FORUM

Please login or register.

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

Author Topic: Problem creating Media Center object  (Read 862 times)

georgem29

  • Regular Member
  • Recent member
  • *
  • Posts: 48
Problem creating Media Center object
« 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?
Logged
Pages: [1]   Go Up