Hi,
I have tried the following start of program:
use strict;
use threads;
use Win32::GUI;
use Win32::Internet;
use Compress::Zlib;
my $thread = threads-new(\download);
###$thread-join();
$thread-detach();
my $exit;
$SIG{INT} = $SIG{BREAK} = $SIG{HUP} = sub {$exit++};
alarm(0);
my $Win =
in the original replies :x-
-Original Message-
From: Octavian Rasnita [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 22, 2006 10:28 AM
To: Plum, Jason
Subject: Re: [perl-win32-gui-users] threads error
Hi,
If I do that, it gives an error telling that a detached thread cannot be
joined
: Plum, Jason [EMAIL PROTECTED]
To: Octavian Rasnita [EMAIL PROTECTED];
perl-win32-gui-users@lists.sourceforge.net
Sent: Wednesday, March 22, 2006 5:33 PM
Subject: RE: [perl-win32-gui-users] threads error
Ah...
Your problem is that you are using a indicator (aka semaphore) to stop
the child
Increment the $exit var inside of Win_Terminate: {$exit++; -1}
-Original Message-
From: Octavian Rasnita [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 22, 2006 11:32 AM
To: Plum, Jason; perl-win32-gui-users@lists.sourceforge.net
Subject: Re: [perl-win32-gui-users] threads error
Ok
for a certain operation (like sleep()?
Thanks.
Teddy
- Original Message -
From: Plum, Jason [EMAIL PROTECTED]
To: Octavian Rasnita [EMAIL PROTECTED];
perl-win32-gui-users@lists.sourceforge.net
Sent: Wednesday, March 22, 2006 6:51 PM
Subject: RE: [perl-win32-gui-users] threads error
Increment
Hmm, strange, I already tried that. Now I've done it again and I see that
it
works.
However, If I put a sleep(10) in the subroutine which runs in a separate
thread, the program is not closed for 10 seconds.
Is there a way to force closing the program immediately even if it should
wait for a
@lists.sourceforge.net
Subject: Re: [perl-win32-gui-users] threads error
Hmm, strange, I already tried that. Now I've done it again and I see
that it works.
However, If I put a sleep(10) in the subroutine which runs in a
separate thread, the program is not closed for 10 seconds.
Is there a way
7 matches
Mail list logo