Re: Win32::Process Kill Process in Windows ME
- From: "Sisyphus" <sisyphus1@xxxxxxxxxxxxxxxxx>
- Date: Sat, 16 Apr 2005 05:35:00 +1000
"Stefan Mueller" <s1210197@xxxxxxxx> wrote in message
news:f35b4d73.0504142300.553dc396@xxxxxxxxxxxxxxxxxxxxx
> Hello Rob,
>
> Thank you for your answer.
>
> "Sisyphus" <sisyphus1@xxxxxxxxxxxxxxxxx> wrote in message
news:<425ce4a5$0$29868$afc38c87@xxxxxxxxxxxxxxxxxxxx>...
> > What actually happens ? Does the script hang .... or exit silently ....
or
> > .... ?
> > Do you get any warnings or error messages ?
>
> No, I get no error messages. The script doesn't hang, it exists like
> the way on XP.
>
I can't find any documented reason for the problem (and I don't actually
have a Windows ME to experiment with). KillProcess() calls OpenProcess() and
TerminateProcess(). I've checked the msdn docs for both OpenProcess and
TerminateProcess and there's no mention of any special considerations
regarding Windows ME.
If you want (and assuming you can compile Win32::Process from source) you
could try changing (in Process.xs):
HANDLE ph = OpenProcess(PROCESS_ALL_ACCESS, 0, pid);
to:
HANDLE ph = OpenProcess(PROCESS_TERMINATE, 0, pid);
(You'll find that about 5 or 6 lines from the end of the file.) I can't
really think of any reason that should help, however.
ActiveState now hosts a (low volume) libwin32-perl mailing list. Maybe
someone there can help. See:
http://aspn.activestate.com/ASPN/Mail/
Cheers,
Rob
.
- References:
- Win32::Process Kill Process in Windows ME
- From: Stefan Mueller
- Re: Win32::Process Kill Process in Windows ME
- From: Sisyphus
- Re: Win32::Process Kill Process in Windows ME
- From: Stefan Mueller
- Win32::Process Kill Process in Windows ME
- Prev by Date: CDK vs Curses::UI
- Next by Date: Xmms-Perl-0.12 not compiling (required for Bundle::MP3)
- Previous by thread: Re: Win32::Process Kill Process in Windows ME
- Next by thread: RFC: DBIx::Counter - persistent counter class
- Index(es):
Relevant Pages
|
|