You sure this works under windows?
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Tom Pollard
> Sent: Friday, August 26, 2005 2:17 AM
> To: ajpeck
> Cc: Perl Win32 mail list
> Subject: Re: [threads] Forced termination
>
>
> On Thu, 25 Aug 2005
Tom Pollard wrote:
> On Thu, 25 Aug 2005, $Bill Luebkert wrote:
>
>>win32 doesn't have signals and any that are implemented don't actually
>>interrupt the receiving process. I believe they just use simple message
>>passing to fake it - so your mileage may vary.
>
>
> My point was precisely tha
On Thu, 25 Aug 2005, $Bill Luebkert wrote:
> win32 doesn't have signals and any that are implemented don't actually
> interrupt the receiving process. I believe they just use simple message
> passing to fake it - so your mileage may vary.
My point was precisely that "they" have arranged that this
Tom Pollard wrote:
> On Thu, 25 Aug 2005, ajpeck wrote:
>
>>Is there a way to forcibly terminate a thread after a specified time
>>regardless if the thread is finished executing.
>
>
> The standard eval{}-timeout technique apparently works well for threads.
> That is, wrap the code that might
Foo Ji-Haw wrote:
> I guess Perl's threading is not quite complete as of 5.8.x. But with forking
> it is possible to kill a child process?
You can certainly do it using Win32::Process, but you may have more
trouble passing info to/from - I've never used the simulated fork on
Win32.
--
,-/-
Hi list,
I managed to solve my problem related to perl2exe and the Win32::ActAcc
module. The author of the module helped me off-list and I learned that
ActAcc will look for both ActAcc.dll and ActAccEM.dll in
\site\lib\auto\Win32\ActAcc\.
Armed with this knowledge and the verbose flag of the
On Thu, 25 Aug 2005, ajpeck wrote:
> Is there a way to forcibly terminate a thread after a specified time
> regardless if the thread is finished executing.
The standard eval{}-timeout technique apparently works well for threads.
That is, wrap the code that might hang for 5 min in an eval{} block
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of [EMAIL PROTECTED]
> Sent: August 25, 2005 3:06 AM
> To: perl-win32-users@listserv.ActiveState.com
> Subject: Trap window close
>
> Hi,
>
> Have looked at sigint to trap the "window close" event
I guess Perl's threading is not quite complete as of 5.8.x. But with forking
it is possible to kill a child process?
- Original Message -
From: "$Bill Luebkert" <[EMAIL PROTECTED]>
To: "ajpeck" <[EMAIL PROTECTED]>
Cc: "Perl Win32 mail list"
Sent: Thursday, August 25, 2005 6:23 PM
Subj
- Original Message -
From: <[EMAIL PROTECTED]>
To:
Sent: Thursday, August 25, 2005 7:05 PM
Subject: Trap window close
> Hi,
>
> Have looked at sigint to trap the "window close" event but am a little
lost.
Also took a look in MSDN, but got the impression that such events applied
only t
ajpeck wrote:
> I am now trying a process and threads hybrid to get around the problem.
>
> We can hope that for Perl 6 a function can be added to threads for
> immediate termination of child threads and freeing resources immediately
> from the parent thread.
You may not be able to free all of
- Original Message -
From: "gao perlone" <[EMAIL PROTECTED]>
To:
Sent: Thursday, August 25, 2005 8:58 PM
Subject: Help me!
> I'd like to write a program to read and get some file from a website
> through a HTTP protocol.which module can help me?HTTP?thanks a lot!
>
Try LWP::Simple (se
I'd like to write a program to read and get some file from a website
through a HTTP protocol.which module can help me?HTTP?thanks a lot!
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveSta
I am now trying a process and threads hybrid to get around the problem.
We can hope that for Perl 6 a function can be added to threads for
immediate termination of child threads and freeing resources immediately
from the parent thread.
Alun
$Bill Luebkert wrote:
ajpeck wrote:
Is there
ajpeck wrote:
> Is there a way to forcibly terminate a thread after a specified time
> regardless if the thread is finished executing. I have threads which
> call certain network functions that have very long hard coded timeouts,
> such as 5 mins. A no response of 5 secs is sufficient for me to
Hi,
MSAgent works just fine from Perl; it is just the event stuff that is
problematic.
I know, I wrote Win32::MSAgent ;-)
The win32com module for Python implements a lot more stuff than Win32::OLE.
I did want to figure out why MSAgent events didn't work for Perl, but
never really wanted it ba
Hi,
Have looked at sigint to trap the "window close" event but am a little lost.
We run some scripts in cmd prompt windows on win2k and I would like to
ignore it if someone accidentally clicks the 'x' to close the window. Is
that possible? Does someone have a bit of code?
Many thanks
Peter.
I do this for connecting to ADAM modules which are running MODBUS
servers on port 502.
I use threads as the tcp timeouts in Win32 don't work since I have to
connect to 27 of these. it takes about about 20 seconds for the thread
to timeout and die if the host I'm trying to connect to isn't
there..
The problem is that I need to reclaim the memory resource of the thread
that is not needed no more, so I can start off a new thread. Thus detach
is not suitable in this case.
Alun
John Serink wrote:
Just detach them and forget about them.
other than that, I don't think there's a way to termi
Just detach them and forget about them.
other than that, I don't think there's a way to terminate them.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of ajpeck
> Sent: Thursday, August 25, 2005 3:02 PM
> To: Perl Win32 mail list
> Subject: [thread
Is there a way to forcibly terminate a thread after a specified time
regardless if the thread is finished executing. I have threads which
call certain network functions that have very long hard coded timeouts,
such as 5 mins. A no response of 5 secs is sufficient for me to know
that there is a
21 matches
Mail list logo