2005-03-21, 10:56 PM
The version of the plugin you are using doesn't do a ForceRepaint (the new version does, but will stop requesting if it hasn't been rendered for a second or so).
I noticed however that the panelNeedsRendering() method is called every second or so. This method doesn't do any serious things, it's just checkin the intervalcounter (your version) or the current datetime (to see if a refresh is needed). However the renderPanel() method will only be called when the panel is actually in view (and panelNeedsRendering() has returned 'true'.
On the MediaMVP I'm seeing 'strange' things in the logfile. When the main menu, with the news panel, is in view it shows every second:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">21-Mar-05 23:26:15.046 VERBOSE [2] Newstask.panelNeedsRendering returns False
21-Mar-05 23:26:16.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:26:16.046 VERBOSE [2] Rendering MenuMenuTask
21-Mar-05 23:26:16.046 VERBOSE [2] Newstask.renderPanel is called
21-Mar-05 23:26:16.186 VERBOSE [2] frame sent
21-Mar-05 23:26:16.436 VERBOSE [71] MVP data read: 1
21-Mar-05 23:26:16.436 VERBOSE [71] MVP request processed[/QUOTE]
When I select a task (e.g. the TV-Guide) it becomes (repeated every second):
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">21-Mar-05 23:26:42.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:26:42.171 VERBOSE [2] frame sent
21-Mar-05 23:26:42.421 VERBOSE [71] MVP data read: 1
21-Mar-05 23:26:42.421 VERBOSE [71] MVP request processed[/QUOTE]
However when I shutdown the MediaMVP it becomes (the last 3 lines are repeated every second and the logfile grows very large):
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">21-Mar-05 23:28:08.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:28:08.186 VERBOSE [2] frame sent
21-Mar-05 23:28:08.436 VERBOSE [71] MVP data read: 1
21-Mar-05 23:28:08.436 VERBOSE [71] MVP request processed
21-Mar-05 23:28:09.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:28:09.171 VERBOSE [2] frame sent
21-Mar-05 23:28:10.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:28:10.171 VERBOSE [2] frame sent
21-Mar-05 23:28:11.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:28:11.171 ERROR [2] MVP Timer Refresh error: An established connection was aborted by the software in your host machine
21-Mar-05 23:28:11.171 ERROR [2] Â at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
 at System.Net.Sockets.Socket.Send(Byte[] buffer)
 at r.a(Boolean A_0)
 at r.c(Object A_0, EventArgs A_1)
21-Mar-05 23:28:12.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:28:12.171 ERROR [2] MVP Timer Refresh error: An established connection was aborted by the software in your host machine
21-Mar-05 23:28:12.171 ERROR [2] Â at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
 at System.Net.Sockets.Socket.Send(Byte[] buffer)
 at r.a(Boolean A_0)
 at r.c(Object A_0, EventArgs A_1)
21-Mar-05 23:28:13.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
[/QUOTE]
These error messages do not appear when I disable the panel.
I do find it strange panelNeedsRendering() is called even when the panel is not in view. As I said before I'm doing no fancy things in this method, so I'm finding it hard to believe the panel is to blame for the error messages....
I will post the most recent version of the plugin (including the sources) to the Wiki, so others can try it out.
I noticed however that the panelNeedsRendering() method is called every second or so. This method doesn't do any serious things, it's just checkin the intervalcounter (your version) or the current datetime (to see if a refresh is needed). However the renderPanel() method will only be called when the panel is actually in view (and panelNeedsRendering() has returned 'true'.
On the MediaMVP I'm seeing 'strange' things in the logfile. When the main menu, with the news panel, is in view it shows every second:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">21-Mar-05 23:26:15.046 VERBOSE [2] Newstask.panelNeedsRendering returns False
21-Mar-05 23:26:16.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:26:16.046 VERBOSE [2] Rendering MenuMenuTask
21-Mar-05 23:26:16.046 VERBOSE [2] Newstask.renderPanel is called
21-Mar-05 23:26:16.186 VERBOSE [2] frame sent
21-Mar-05 23:26:16.436 VERBOSE [71] MVP data read: 1
21-Mar-05 23:26:16.436 VERBOSE [71] MVP request processed[/QUOTE]
When I select a task (e.g. the TV-Guide) it becomes (repeated every second):
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">21-Mar-05 23:26:42.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:26:42.171 VERBOSE [2] frame sent
21-Mar-05 23:26:42.421 VERBOSE [71] MVP data read: 1
21-Mar-05 23:26:42.421 VERBOSE [71] MVP request processed[/QUOTE]
However when I shutdown the MediaMVP it becomes (the last 3 lines are repeated every second and the logfile grows very large):
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">21-Mar-05 23:28:08.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:28:08.186 VERBOSE [2] frame sent
21-Mar-05 23:28:08.436 VERBOSE [71] MVP data read: 1
21-Mar-05 23:28:08.436 VERBOSE [71] MVP request processed
21-Mar-05 23:28:09.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:28:09.171 VERBOSE [2] frame sent
21-Mar-05 23:28:10.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:28:10.171 VERBOSE [2] frame sent
21-Mar-05 23:28:11.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:28:11.171 ERROR [2] MVP Timer Refresh error: An established connection was aborted by the software in your host machine
21-Mar-05 23:28:11.171 ERROR [2] Â at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
 at System.Net.Sockets.Socket.Send(Byte[] buffer)
 at r.a(Boolean A_0)
 at r.c(Object A_0, EventArgs A_1)
21-Mar-05 23:28:12.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:28:12.171 ERROR [2] MVP Timer Refresh error: An established connection was aborted by the software in your host machine
21-Mar-05 23:28:12.171 ERROR [2] Â at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
 at System.Net.Sockets.Socket.Send(Byte[] buffer)
 at r.a(Boolean A_0)
 at r.c(Object A_0, EventArgs A_1)
21-Mar-05 23:28:13.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
[/QUOTE]
These error messages do not appear when I disable the panel.
I do find it strange panelNeedsRendering() is called even when the panel is not in view. As I said before I'm doing no fancy things in this method, so I'm finding it hard to believe the panel is to blame for the error messages....
I will post the most recent version of the plugin (including the sources) to the Wiki, so others can try it out.