I'm new, and err...Exception handling?? (1 Viewer)

Henze

New Member
June 16, 2011
2
0
Home Country
Netherlands Netherlands
Hello, I am kinda new to this forum but mainly because i have some very irritating problems with the TV part of mediaportal, I will soon start a topic about that, but in the mean time I want to know how you (programmers) are handling exceptions? because everytime (I think a bad part of the TV stream) the TV crashes it just hangs and I have to restart the tvservice.exe in order to recover that. now, I am using the splug.dll for my anysee E30 plus...so that can be the failing factor, yet I can't stop thinking as a programmer my self that catching the exception which is being thrown because of the stream distortion is not handled well (like

try{//what ever happens to make the stream being sent to the receiving software}catch(TypeOfException e){print e.message();// printing and freeze the tvservice.exe instead of trying to restart the signal})

I really hope it's something from mediaportal that can recover the tv stream (so it can be fixed, with splug.dll you never know since this is something created and probably not maintained anymore by anysee)
(I rather have a few seconds of no tv than 30 seconds of restarting service or a few minutes rebooting the entire system and missing a important part of a movie or tv-show)

again: I will post my logs on the forums as soon as it happens again! just an suggestion to find a way to recover an damaged stream:);)
 

Oxan

Retired Team Member
  • Premium Supporter
  • August 29, 2009
    1,730
    1,124
    Home Country
    Netherlands Netherlands
    I'm not a Mediaportal developer, but I can take a guess. It's probably a bit more complicated then just catching the exception and restarting the stream. It can be that the exception leaves splug.dll in a unknown, inconsistent state which gives problems during or after restarting. It can be that there isn't an exception thrown but splug.dll just freezes (so no MP code is being executed at all).
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Hi Henze

    Oxan is right. I think you need to determine whether the problem is on the TV Server side (ie. tuner stops supplying the stream, or splug encounters a problem internally etc.) or the client side (ie. stream is corrupt and can't be played by TsReader). There are TsReader builds -->here<-- that might help with the problem if it is a client side issue. I should also say that if signal quality is poor then better to try and improve the signal quality than work around the problem by trying to handle exceptions etc.

    mm
     

    Users who are viewing this thread

    Top Bottom