in reply to Re: Tk::exit hangs
in thread Tk::exit hangs

The code that uses exit() was working with the previous version of perl we used (5.6.1).

But after upgrade to perl 5.8.8 I was forced to use CORE::exit(), otherwise perl was crashing.

If I try to use Tk:exit() (without using $mainwindow->distroy) I get the same behaviour (my script hangs).

If I try to use CORE::exit() without using $mainwindow->distroy, perl will crash with "Segmentation fault".

Seems that the main issue with this is the design of the application (big installer with GUI in Tk). The mainwindow and MainLoop are created in a module, the destroy is called in some other modules that import the first one.

Thanks for suggestions.