home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
recording tv just stopped :( HELP!!!
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="davidf" data-source="post: 1047660" data-attributes="member: 19484"><p>mm - good problem <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Started reading the code this evening and it appears that there is no way of causing an error on that line of code... Wish I had a TV card with me (I'm working away from home), as it looks like an interesting problem. There seem to be a few ways of causing an exception there - but none that I can see are unmanaged so the outer try should catch it...</p><p></p><p>Might be worth trying this:</p><p></p><p>[CODE]</p><p>catch(SEHException sehException)</p><p>{</p><p> //Get the error code</p><p> int errcode = sehException.ErrorCode; </p><p> Log(errcode); //bet money it says E_FAIL :)</p><p>}</p><p>catch(Exception otherException)</p><p>{</p><p> //other exceptions can be trapped and get exception details</p><p> Exception excep = otherException.InnerException;</p><p>}</p><p>catch</p><p>{</p><p> Log... //gods knows what to log as this exception is not marshallable and could be anything, and there is no way of telling what it is and where it came from</p><p>}</p><p>[/CODE]</p><p></p><p>There's also a few things which won't get caught by those three: out of memory or stack overflow. Although if the extra catches do something you know that you can get a debugger on it.</p></blockquote><p></p>
[QUOTE="davidf, post: 1047660, member: 19484"] mm - good problem :) Started reading the code this evening and it appears that there is no way of causing an error on that line of code... Wish I had a TV card with me (I'm working away from home), as it looks like an interesting problem. There seem to be a few ways of causing an exception there - but none that I can see are unmanaged so the outer try should catch it... Might be worth trying this: [CODE] catch(SEHException sehException) { //Get the error code int errcode = sehException.ErrorCode; Log(errcode); //bet money it says E_FAIL :) } catch(Exception otherException) { //other exceptions can be trapped and get exception details Exception excep = otherException.InnerException; } catch { Log... //gods knows what to log as this exception is not marshallable and could be anything, and there is no way of telling what it is and where it came from } [/CODE] There's also a few things which won't get caught by those three: out of memory or stack overflow. Although if the extra catches do something you know that you can get a debugger on it. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
recording tv just stopped :( HELP!!!
Contact us
RSS
Top
Bottom