|
From: Marco T. <wx...@so...> - 2002-01-25 14:28:05
|
hy all,
i'm trying to write a programm that downloads something...
let's say:
for($i=1; $i<=100; $i++)
{
$this->{gauge}->SetValue($i);
sleep(5);
}
problem:
this freezes my gui...
my proposed solution:
my $pid = fork;
if ($pid == 0)
{
for($i=1; $i<=100; $i++)
{
$this->{gauge}->SetValue($i);
sleep(5);
}
exit(0);
}
ok, gui doesn't freeze anymore...
but the program crashes around exit(0)
so, can anyone explain me how i can prevent my gui from freezing?
how to use fork()? what i'm doing/thinking wrong?
should be os indepent...
currently working with: wxPerl0.08 & ActivePerl 5.6.1.631
greetings
Marco
PS: i already asked something related to this topic but haven't found a
solution
|