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.