TVService PowerEventThread (1 Viewer)

josch.hh

MP Donator
  • Premium Supporter
  • March 29, 2008
    476
    77
    Hamburg
    Home Country
    Germany Germany
    Can someone tell me why are the PowerEvents in the file Service1.cs class TVService are handled via Window Broadcast Messages and not via the override of the SeriveBase PowerEvent methods?
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    by a mistake? Sorry, no actual knowledge, but at least it shounds like a mistake to me. Is there some issues that it causes?
     

    josch.hh

    MP Donator
  • Premium Supporter
  • March 29, 2008
    476
    77
    Hamburg
    Home Country
    Germany Germany
    by a mistake? Sorry, no actual knowledge, but at least it shounds like a mistake to me. Is there some issues that it causes?

    No issues. I only wanted to know. The PowerEvent handling is a very hard one if you do it this way. I thought that this may have some special meaning.

    I am currently interested in that, beacause my MPstandbyHandler windows service does not react on powerevents as fast as processes with a window handle which get the powerevents via a window message.
    This is misterious.

    Do you know the person who coded this class?
     

    josch.hh

    MP Donator
  • Premium Supporter
  • March 29, 2008
    476
    77
    Hamburg
    Home Country
    Germany Germany
    Sorry to comment my own thread, but i think i found the reason why the creator of the main TVService class did such a "hard" work to implement power event handling.

    After days of searching the Inet i found some comments that say "The PowerEvent Handling" in .Net Windows Services is BROKEN!
    This is what i also experienced during my coding.

    So stay away from it.

    Bye the way, the "Session Change Handling" is also broken...
     

    Users who are viewing this thread

    Similar threads

    The UseSSL trick made MediaPortal great again, thanks.
    The UseSSL trick made MediaPortal great again, thanks.
    Hi, Trakt has work perfectly for me for over 10 years, but for some reason this week it will not Authorize my account. I can log...
    Replies
    10
    Views
    998
    It took a while but loading the three updates and waiting, (I wandered off doing other things), while the Win 7 searched for updates eventually brought about 170 available updates. I picked the latest, largest and Cumulative ones and everything burst into action enough to re-install MediaPortal 1.33 which is running very well. I let...
    It took a while but loading the three updates and waiting, (I wandered off doing other things), while the Win 7 searched for...
    Hi Running MP1 - 1.39 for long while, no issues. 10th April [same time as 2024-KB5037036 Cumulative Update for .NET Framework...
    Replies
    11
    Views
    2K
    Concerning the HDHomerun Expand. This has 4 tuners, and is DVB-C It has, of course, latest software from Silicondust already installed, version name 20230713. BDA compatibility mode is set to MediaPortal. Advanced --- BDA driver set to InjectCVCT plus automatically select from tuners recommended.
    Concerning the HDHomerun Expand. This has 4 tuners, and is DVB-C It has, of course, latest software from Silicondust already...
    I have set up MP1 .34 on Win 11 Pro. I have a HDHomerun Expand DVB-C tuner, which I have used for about 10 years. Until about 2021...
    Replies
    13
    Views
    1K
    Thanks CyberSimian, that's fixed it (y) and also thanks to AJS for including the change in the next release.
    Thanks CyberSimian, that's fixed it (y) and also thanks to AJS for including the change in the next release.
    When using the List Layout for Argus TV Recorded TV the page count is above the bottom information bar, refer to attached...
    Replies
    4
    Views
    655
    MP1 MP2 [solved] Basic audio question... DE
    Yes, works, thanks. Deselecting "Prefer multichannel audio streams" under "Video Player" (under "Players") gives me the stereo stream, by default, in television also. Thanks for your help. N.
    Yes, works, thanks. Deselecting "Prefer multichannel audio streams" under "Video Player" (under "Players") gives me the stereo...
    Is there a way to set the default audio stream for live TV? The default default, so to speak, for me seems to be English...
    Replies
    4
    Views
    1K
    Top Bottom