Terminate process, wrong path?

delphi package - easy access to kernel objects etc.
Post Reply
ira
Posts: 49
Joined: Mon Dec 14, 2009 6:29 am

Terminate process, wrong path?

Post by ira »

Processes(fn).Terminate;

fn is d:\explorer.exe

Run the program, explorer.exe in C:\Windows also got killed.

Solution?

Thanks.
madshi
Site Admin
Posts: 10365
Joined: Sun Mar 21, 2004 5:25 pm

Re: Terminate process, wrong path?

Post by madshi »

Which OS are we talking about? Can you reproduce this with a small test project?
ira
Posts: 49
Joined: Mon Dec 14, 2009 6:29 am

Re: Terminate process, wrong path?

Post by ira »

Tried on Windows 7 Ultimate SP1 x64.

Rename any program to explorer.exe and put it on d:, run it, kill with Processes('d:\explorer.exe').Terminate;

Explorer.exe in C:\Windows folder also got killed.
madshi
Site Admin
Posts: 10365
Joined: Sun Mar 21, 2004 5:25 pm

Re: Terminate process, wrong path?

Post by madshi »

This problem should be fixed in the next build (should be released in a couple of days).
Post Reply