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

Cannot terminate Process #83

Open
ELePors opened this issue Mar 13, 2024 · 0 comments
Open

Cannot terminate Process #83

ELePors opened this issue Mar 13, 2024 · 0 comments

Comments

@ELePors
Copy link

ELePors commented Mar 13, 2024

Hi,

When i try to terminate OS processes, the Terminating use case is working with this code :

newprocess := OSWSWinProcess new 
		shellCommand: 'cmd.exe';
		run.
newprocess terminate.

But if i wait the cmd.exe startup or with a Delay between shellCommand and terminate... it fails :

newprocess := OSWSWinProcess new 
		shellCommand: 'cmd.exe';
		run.
		5 seconds wait.
newprocess terminate.

if i run the terminate using the hProcess of the newprocess processInfo... it doesn't work anymore ?

OSWSWinProcessLibrary uniqueInstance terminate: newprocess processInfo hProcess exitCode: 0.

Please help ?

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

1 participant