INTERACT FORUM

Please login or register.

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

Author Topic: Bug in IMJPlaybackAutomation  (Read 1943 times)

MahlerFreak

  • Recent member
  • *
  • Posts: 49
Bug in IMJPlaybackAutomation
« on: December 01, 2006, 11:34:04 am »

I guess it's my lot in life to find obscure bugs in the automation interface  :)

This one goes as follows: under a particular set of circumstances, the GetPosition and GetDuration methods of the IMJPlaybackAutomation interface fail to return actual values, returning zero on every call. Here are the circumstances: start MC11. Initiate playback from the automation interface. If playback is initiated for the first time from the automation interface, subsequent calls to the GetPosition and PutPosition methods fail for the rest of the session, regardless of subsequent events. Each call to these methods results in an exception being recorded in the VC++ debugger:

First-chance exception at 0x66869b97 in Media Center.exe: 0xC0000005: Access violation reading location 0x00000014.

Note that the address of the access violation changes from session to session, potentially indicating an uninitialized variable.

Now for the curious part: if you bring up MC11, and first initiate playback from the GUI, the GetPosition and GetDuration methods work correctly for the rest of the MC11 session, even if playback is subsequently initiated from the automation interface.

Although an obscure bug, this one is quite problematic for me as there is no workaround I can think of and it prevents the "now playing" display of my web client from functioning correctly.
Logged

PaulSinnema

  • Galactic Citizen
  • ****
  • Posts: 393
  • You don't know what you're missing until its gone
Re: Bug in IMJPlaybackAutomation
« Reply #1 on: December 09, 2006, 10:11:32 am »

Well, you're not the only one having trouble with MC11.exe. I've been using this little program some time now. I'm using it together with MouseRemote X10 remote control and a little program call max10. This way I'm able to send many of the automation commands to Media Center. It all work very nice but....

When I use the 'Next Track' too fast which causes more than 1 MC11.exe to be loaded into memory, Media Center crashes without any notice. At restart a kind of save-mode box is show in which I can disable some of the features which I think means Media Center itself discovered it went down abnormally.

This is the only flaw I've uncovered since I started using MC11.exe and I don't have a workarround for that either.

Paul.
Logged

PaulSinnema

  • Galactic Citizen
  • ****
  • Posts: 393
  • You don't know what you're missing until its gone
Re: Bug in IMJPlaybackAutomation
« Reply #2 on: January 21, 2007, 03:21:31 am »

My last 4 posts have never been answered! Is anyone reading our stuff?
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71469
  • Where did I put my teeth?
Re: Bug in IMJPlaybackAutomation
« Reply #3 on: January 21, 2007, 07:45:16 am »

Yes.  I can't answer your questions though.  Maybe another developer can.

You might also want to test with MC12 now since that's where our work is concentrated.

We won't fix bugs now in MC11.
Logged

PaulSinnema

  • Galactic Citizen
  • ****
  • Posts: 393
  • You don't know what you're missing until its gone
Re: Bug in IMJPlaybackAutomation
« Reply #4 on: January 22, 2007, 01:06:38 am »

Because I'm talking about MC11.exe doesn't mean I've haven't got Media Player 12 ;D! I'm almost always using the latest version of Media Player (i.e. always respond to the download message). I'm currenly using 12.0.147.
Logged
Pages: [1]   Go Up