The Media Center Sandbox

Resources and discussion for developing experiences in the Windows Media Center platform.
Welcome to The Media Center Sandbox Sign in | Join | Help
in Search

Having issues unsubscribing from Transport.PropertyChanged

Last post 10-07-2008, 5:08 AM by sambo99. 4 replies.
Sort Posts: Previous Next
  •  10-02-2008, 7:42 PM 8435

    Having issues unsubscribing from Transport.PropertyChanged

    I'm having issues unsubscribing from Transport.PropertyChanged, I have no problem adding subscribers but the -= operator does not seem to work.

    Is anyone else experiencing this, initially I though the event implementation was broken, but I'm not so sure anymore.
  •  10-06-2008, 1:35 PM 8448 in reply to 8435

    Re: Having issues unsubscribing from Transport.PropertyChanged

    I didn't notice such a problem... strange. Have you tryed to create a new blank WMCPL project where you can try to attach and detach your event handler?
  •  10-06-2008, 3:40 PM 8452 in reply to 8448

    Re: Having issues unsubscribing from Transport.PropertyChanged

    I still need to do some debugging, I maybe overlooked something.

    I noticed that when you subscribe to Transport.PropertyChanged on one AVI it stays subscribed for all subsequent AVIs, but not for DVDs. I will play with this a bit more this week and post my results.
  •  10-06-2008, 11:14 PM 8456 in reply to 8452

    Re: Having issues unsubscribing from Transport.PropertyChanged

    Are you running RTM or TV Pack version of Media Center?

    The Transport object seems to be created/destroyed in different patterns depending on which experience you are using - it sounds like for videos, the existing Transport object is re-used, but when you switch experiences (from "video" to "dvd") the transport object is destroyed and a new one created.  IIRC recorded TV is even worse.

    Cheers,
    Andrew

  •  10-07-2008, 5:08 AM 8465 in reply to 8456

    Re: Having issues unsubscribing from Transport.PropertyChanged

    Hi Andrew,

    I'm using RTM, when I was debugging it the other day it was really weird, I only tried DVDs and videos, have not tried recorded TV yet. Will post my findings as soon as I'm done debugging.

    Thanks
    Sam
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems