Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: weird case of memory corruption?

by perltux (Monk)
on May 12, 2021 at 07:44 UTC ( [id://11132449] : note . print w/replies, xml ) Need Help??


in reply to Re: weird case of memory corruption?
in thread weird case of memory corruption?

That's a bummer. Thing is I have actually used Tk:ProgressBar previously with no issues, that's why I don't understand why it's misbehaving in this instance, I'm using it the same way as previously.

Do you think that I should bring this to the attention of the maintainer, Slaven Rezić?

Replies are listed 'Best First'.
Re^3: weird case of memory corruption?
by choroba (Cardinal) on May 12, 2021 at 08:33 UTC
    Creating a bug report is always good. But check first the same issue hasn't been reported already.

    Also, as a workaround, you can set the value after creating the progress bar, e.g.

    my $value = $$val; my $pbar = $$frame->ProgressBar( ... ); $$val = $value;

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]