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
MediaPortal 1 Plugins
Executing an external application....and getting its output
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="samuel337" data-source="post: 53041" data-attributes="member: 10347"><p>I'm a bit new to threading too; I know the basics, but not some of the harder stuff. I did this for a Windows Form solution, so it was easier there.</p><p></p><p>The answer to your problem is that you need your class to implement the ISynchronizeInvoke interface, so then there is a mechanism for the process thread to communicate with the UI thread - all UI related calls should be done on the UI thread (funny things usually happen otherwise). </p><p></p><p>Alternatively, you could try using the BackgroundWorker object, which is designed to alleviate this problem.</p><p></p><p>I'll see if I can get some time this weekend to dabble with this and post some code.</p><p></p><p>Sam</p></blockquote><p></p>
[QUOTE="samuel337, post: 53041, member: 10347"] I'm a bit new to threading too; I know the basics, but not some of the harder stuff. I did this for a Windows Form solution, so it was easier there. The answer to your problem is that you need your class to implement the ISynchronizeInvoke interface, so then there is a mechanism for the process thread to communicate with the UI thread - all UI related calls should be done on the UI thread (funny things usually happen otherwise). Alternatively, you could try using the BackgroundWorker object, which is designed to alleviate this problem. I'll see if I can get some time this weekend to dabble with this and post some code. Sam [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Executing an external application....and getting its output
Contact us
RSS
Top
Bottom