in reply to Re^3: perl tk script dumps core?!
in thread perl tk script dumps core?!

I noticed that the error occurs after activating the Quit button (выход), but not if the application is closed from the frame's close button on the title bar.

Replies are listed 'Best First'.
Re^5: perl tk script dumps core?!
by Anonymous Monk on Jul 08, 2011 at 11:33 UTC

    I noticed that the error occurs after activating the Quit button (выход), but not if the application is closed from the frame's close button on the title bar.

    Try calling destroy on your mainwindow instead of perl function exit, or maybe use Tk::exit

      Today I found that Device::SerialPort was causing the core dump. The "exit" command called by a button did not entirely end the serial communication going on and that caused the core dump. I added some lines of code so that the button only chaned a variable and based on that variable a "disconnect" and "exit" command was issued from within the main subroutine -- the dumping of core stopped! Many thanks to all for the suggestions and help!!!