Error: why?? 
Author Message
 Error: why??

Hi
does anyone know why I keep getting this error?
$pingSettings does already exist

thx
Bart

Tk::Frame=HASH(0x1ead3fc) is not a widget at pinger.pl line 146

sub updateSettings {
    while (1) {
        if ($pingCount && $pingSize && $pingTimeout) {
            $n = $pingCount->get();
            $l = $pingSize->get();
            $w = $pingTimeout->get();
            destroy $pingSettings;
            $pingSettings->Label(
                -text => "ping \$ip -n $n -l $l -w $w",
                -foreground => 'white',
                -background => 'darkgray',
                )->pack(
                -side => 'top'
                );
            $main->update;
        }
    }

Quote:
}



Sat, 05 Jul 2003 06:29:01 GMT  
 Error: why??
Bart van den Burg schrieb:

Quote:
>             destroy $pingSettings;

That's why! A destroyed widget is not a widget any longer.

Martin



Sat, 05 Jul 2003 07:09:55 GMT  
 Error: why??
oops, stoopid me :)
I've been working on it for too long today
but at least it works now,
thx


Quote:
> Bart van den Burg schrieb:

> >             destroy $pingSettings;

> That's why! A destroyed widget is not a widget any longer.

> Martin



Sat, 05 Jul 2003 07:15:04 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Changing ENV vars and bus errors, why?

2. Newbie - OPEN() gives sh error - why?

3. http 1.0/500 Server Error (Why?)

4. eval() doesn't trap error - why?

5. $string = s/\|//g; error - why?

6. "Scalar found where operator expected" error -- why?

7. -image => $test_gif causes error, why?

8. Why, why, why, -w and use strict?

9. why o why o why

10. Why is this a syntax-error with perl5 ?

11. Why do I get an error

12. Sorry for this but why wont my function calls pass vars - i get this error

 

 
Powered by phpBB® Forum Software