My question is how is possible, or where can be my error, that I need to
press more than one time the window close button for the main window.
If there is some example about how to work with diferrent pm modules
without any problems, I will agree.
I have had this problem in the past, and I have tracked it down to one of
two things:
1) I have made a second call to Win32::GUI::Dialog inside some event sub, so
when I press the close button the first time, that event finishes, but the
original Win32::GUI::Dialog is still waiting for a -1 to be returned. If
you have other windows with their own WIn32::GUI::Dialog calls, be sure
whatever sub causes a secondary window to close also returns -1.
2) I am inside a Win32::GUI::DoEvents loop, and returning -1 will have no
real effect until the loop terminates. (Unless, of course, you explicitly
check for it - but I never do, because in every situation I've run across,
it's easier and more efficient to use Win32::GUI::Dialog than to use
Win32::GUI::DoEvents and check for -1.)
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com