Skip to content

Cannot terminate Process  #83

@ELePors

Description

@ELePors

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions