Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get ProcessId / or use WaitForExit() #49

Open
sookels123 opened this issue Apr 22, 2020 · 1 comment
Open

Unable to get ProcessId / or use WaitForExit() #49

sookels123 opened this issue Apr 22, 2020 · 1 comment

Comments

@sookels123
Copy link

I would like to start a new process directly after the first process completes, but I get an error "This BackgroundWorker is currently busy and cannot run multiple tasks concurrently"

I assume it is due to the first process still being active, but I have no means to check if it is active or wait for the process to complete.

Please assist :)

@ayesc9000
Copy link

Is this issue directly related to the console? If so can you provide a little more info as to what you mean?

If you want to just check to see when the program running in the console window stops, then you can simply check the IsProcessRunning boolean in a loop of some sort. Preferably using a 250ms timer and just letting it run every time the tick event triggers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants