Hi Teddy, I've experienced a similar problem, which was solved by code like the following:
Win32::GUI::Dialog(); $Dlg->DESTROY(); In other words, call the Destroy method of the dialog object after the GUI event loop terminates, thus ensuring that Perl completely releases the dialog resources. This did not work, however, if instead of a dialog, I used a standard window with the DialogUI=1 setting. Hope this helps, Jamal -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Octavian Rasnita Sent: Sunday, October 01, 2006 12:00 PM To: perl-win32-gui-users@lists.sourceforge.net Subject: [perl-win32-gui-users] Win32::GUI dialog doesn't close Hi, I have create a program using Win32::GUI and perlapp. I have made the main window a "dialog" window for making it usable with a keyboard, so if I press the escape key, the program closes. Well, this is pretty ok, but the problem is that perl interpreter doesn't always close, and after closing the program that way, I can see the program running in the Task Manager (in the processes list). Is there a way of avoiding this? The program doesn't always stay resident. Very many times, it closes when pressing the escape button, but sometimes it doesn't. Thank you. Teddy ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Perl-Win32-GUI-Users mailing list Perl-Win32-GUI-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users http://perl-win32-gui.sourceforge.net/