Various issues (errors, crashes, segmentation faults) are encountered when Perl exit is called before destroying the main/root window. Examples include:
Tcl::Tk appears to be affected by this as well (https://www.perlmonks.org/?node_id=1191134). I do not know whether wrappers can/should support exit usage, so for now I recommend always destroying the root toplevel before Perl exits (either by entering MainLoop and waiting for the user to close it, or programmatically using the destroy method).
Various issues (errors, crashes, segmentation faults) are encountered when Perl
exitis called before destroying the main/root window. Examples include:exitin callbacks (see https://rt.cpan.org/Ticket/Display.html?id=128654)exitat the end of a script, as was often done in test scripts which never calledMainLoop(see https://rt.cpan.org/Ticket/Display.html?id=128804)Tcl::Tk appears to be affected by this as well (https://www.perlmonks.org/?node_id=1191134). I do not know whether wrappers can/should support
exitusage, so for now I recommend always destroying the root toplevel before Perl exits (either by enteringMainLoopand waiting for the user to close it, or programmatically using thedestroymethod).