Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: "Segmentation fault after destroying window"

by mnooning (Beadle)
on Mar 16, 2006 at 22:37 UTC ( #537315=note: print w/ replies, xml ) Need Help??


in reply to Re: "Segmentation fault after destroying window"
in thread "Segmentation fault after destroying window"

I have another answer I can live with a little easier. I wrote another
proof of concept script wherein the MainWindow is kept as mentioned before.
It looks like I can create and destroy Toplevel windows as I need to,
while keeping the MainWindow withdrawn.

This works without getting a segmentation fault:

sub service_for_mw_button_press { my ($mw) = shift; my $top_level = $mw->Toplevel

and then later, when I no longer need the $top_level,

$top_level->destroy; undef($top_level); $mw->deiconify; $mw_raise;

This idea, plus a redesign to make the real program an event driven
design from the beginning, should do the job. Thanks for all of your
help.


Comment on Re^2: "Segmentation fault after destroying window"
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://537315]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2015-08-01 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls