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
Electronic Program Guide
xmlTV
Stay Awake Whilst Loading EPG
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="jameson_uk" data-source="post: 538434" data-attributes="member: 11220"><p>Had a rush job of trying to understand the code but I am doing this on a machine without Visual Studio...</p><p></p><p>I think your code probably fixes the original problem Arion_p raised however not the additional bit he added today...</p><p></p><p>I think (well quessing really) that a new thread gets raised in StartImport (where you have removed the call to SetStandbyAllowed(false); ) but this thread creates an instance of XMLTVImport and kicks off the import but somewhere in here a new thread gets called which physically does the insert however it does not wait for this to return so the main plugin code gets to finish and SetStandbyAllows(true); gets called</p><p></p><p>Not sure if the problem is line 782 of xmltvimport.cs where is makes a call to </p><p>layer.InsertPrograms(progChan.programs, ThreadPriority.BelowNormal);</p><p>and then returns back to the main plugin code</p><p></p><p>As I said I have only had a very sort time to look at this on a machine without VS but if I can help with any testing let me know...</p><p></p><p>Thanks</p></blockquote><p></p>
[QUOTE="jameson_uk, post: 538434, member: 11220"] Had a rush job of trying to understand the code but I am doing this on a machine without Visual Studio... I think your code probably fixes the original problem Arion_p raised however not the additional bit he added today... I think (well quessing really) that a new thread gets raised in StartImport (where you have removed the call to SetStandbyAllowed(false); ) but this thread creates an instance of XMLTVImport and kicks off the import but somewhere in here a new thread gets called which physically does the insert however it does not wait for this to return so the main plugin code gets to finish and SetStandbyAllows(true); gets called Not sure if the problem is line 782 of xmltvimport.cs where is makes a call to layer.InsertPrograms(progChan.programs, ThreadPriority.BelowNormal); and then returns back to the main plugin code As I said I have only had a very sort time to look at this on a machine without VS but if I can help with any testing let me know... Thanks [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Electronic Program Guide
xmlTV
Stay Awake Whilst Loading EPG
Contact us
RSS
Top
Bottom