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
Development
General Development (no feature request here!)
Background worker (to prevent freezing)
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="Dragy" data-source="post: 754868" data-attributes="member: 91197"><p>It works on my computer (i7 8 virtual cores), but on the HTPC (2 cores) it only works at random times.. I get this error very often:</p><p></p><p></p><p>I cannot understand why it only works randomly..</p><p>Also the bw_getMacros works mostly only after the first time. So the first time it just doesn't get all the macros..</p><p></p><p>//edit</p><p>OMG, I think I've fixed it now!</p><p>Instead of this:</p><p>[code]bw_get_devices = new BackgroundWorker();</p><p>[B]bw_get_devices.RunWorkerAsync();[/B]</p><p>bw_get_devices.DoWork += bw_getDevices;</p><p>bw_get_devices.RunWorkerCompleted += bw_getDevices_Completed;[/code]</p><p>I use now this (duh):</p><p>[code]bw_get_devices = new BackgroundWorker();</p><p>bw_get_devices.DoWork += bw_getDevices;</p><p>bw_get_devices.RunWorkerCompleted += bw_getDevices_Completed;</p><p>[B]bw_get_devices.RunWorkerAsync();[/B][/code]</p></blockquote><p></p>
[QUOTE="Dragy, post: 754868, member: 91197"] It works on my computer (i7 8 virtual cores), but on the HTPC (2 cores) it only works at random times.. I get this error very often: I cannot understand why it only works randomly.. Also the bw_getMacros works mostly only after the first time. So the first time it just doesn't get all the macros.. //edit OMG, I think I've fixed it now! Instead of this: [code]bw_get_devices = new BackgroundWorker(); [B]bw_get_devices.RunWorkerAsync();[/B] bw_get_devices.DoWork += bw_getDevices; bw_get_devices.RunWorkerCompleted += bw_getDevices_Completed;[/code] I use now this (duh): [code]bw_get_devices = new BackgroundWorker(); bw_get_devices.DoWork += bw_getDevices; bw_get_devices.RunWorkerCompleted += bw_getDevices_Completed; [B]bw_get_devices.RunWorkerAsync();[/B][/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Background worker (to prevent freezing)
Contact us
RSS
Top
Bottom