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: 1047424" data-attributes="member: 19484"><p>Just read it - and the problem looks like it might be exposed if you try:</p><p></p><p>[CODE]</p><p></p><p>try</p><p>{</p><p> foreach (VirtualCard vCard in vCards)</p><p> {</p><p> Log.Write("debug: card {0}", vCard.Name);</p><p> int schedId = vCard.RecordingScheduleId;</p><p> Log.Write("debug: schedule {0}", schedId);</p><p> if (schedId > 0)</p><p> {</p><p> Log.Write("debug: get schedule");</p><p> Schedule sc = Schedule.Retrieve(schedId);</p><p> Log.Write("debug: got schedule");</p><p> if (sc == null)</p><p> {</p><p> //seems like the schedule has disappeared stop the recording also.</p><p> Log.Debug("Scheduler: Orphaned Recording found {0} - removing", schedId);</p><p> StopRecordingSchedule(schedId);</p><p> }</p><p> Log.Write("debug: done stop");</p><p> }</p><p> Log.Write("debug: done check");</p><p> }</p><p> catch (Exception ex)</p><p> {</p><p> Log.Write (ex.ToString())</p><p> }</p><p>[/CODE]</p><p></p><p>I think it may be that vCards is null (which will throw an exception), and this must be causing a problem somewhere else. The other option is that vCards is late binding linq, which will only blow up when it's evaluated (as in the foreach loop), and might be unmanaged code under the hood (if you are really unlucky).</p><p></p><p>David</p></blockquote><p></p>
[QUOTE="davidf, post: 1047424, member: 19484"] Just read it - and the problem looks like it might be exposed if you try: [CODE] try { foreach (VirtualCard vCard in vCards) { Log.Write("debug: card {0}", vCard.Name); int schedId = vCard.RecordingScheduleId; Log.Write("debug: schedule {0}", schedId); if (schedId > 0) { Log.Write("debug: get schedule"); Schedule sc = Schedule.Retrieve(schedId); Log.Write("debug: got schedule"); if (sc == null) { //seems like the schedule has disappeared stop the recording also. Log.Debug("Scheduler: Orphaned Recording found {0} - removing", schedId); StopRecordingSchedule(schedId); } Log.Write("debug: done stop"); } Log.Write("debug: done check"); } catch (Exception ex) { Log.Write (ex.ToString()) } [/CODE] I think it may be that vCards is null (which will throw an exception), and this must be causing a problem somewhere else. The other option is that vCards is late binding linq, which will only blow up when it's evaluated (as in the foreach loop), and might be unmanaged code under the hood (if you are really unlucky). David [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
recording tv just stopped :( HELP!!!
Contact us
RSS
Top
Bottom