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
MPGames Plugin
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="Bagal" data-source="post: 357262" data-attributes="member: 27764"><p>The following will find the process with the specified name and then wait until the process exits, however you should be aware that this will block the current thread until the process ends (and of course, there's no error checking in there).</p><p></p><p>Depending on how you're launching the external process in the first place you should be able to get hold of the process ID and then wait for that to exit rather than doing a search by name.</p><p>I'm sure it's possible to also wait in a non-blocking way, if you look at the MSDN docs for the above code I'm sure you'll be able to find what you need.</p></blockquote><p></p>
[QUOTE="Bagal, post: 357262, member: 27764"] The following will find the process with the specified name and then wait until the process exits, however you should be aware that this will block the current thread until the process ends (and of course, there's no error checking in there). Depending on how you're launching the external process in the first place you should be able to get hold of the process ID and then wait for that to exit rather than doing a search by name. I'm sure it's possible to also wait in a non-blocking way, if you look at the MSDN docs for the above code I'm sure you'll be able to find what you need. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
MPGames Plugin
Contact us
RSS
Top
Bottom