I have an application that uses LWP modul. This application uses
LWP modul to post to some web pages.Previously I used to run
this program as CGI script.I needed to use a web server. For this
reason also I decided to change the program a little and used
Win32::GUI modul. In CGI version there was no problem with
freezing a window. I could switch from any windows to any other
windows at any time.
Now that I use Win32::GUI at some moments( when LWP works) it
seems that the window with the application has frozen.But If I wait
some time it works again. But I do not like waiting.
I know about Win32::GUI::DoEvents() method but I think it is used
in a loop only. Does anybody have any idea how to stop frezing
Thank you for help
>I know about Win32::GUI::DoEvents() method but I think it is used
>in a loop only. Does anybody have any idea how to stop frezing
In essence, LWP uses a blocking call to do whatever it's trying to do.
Meaning that while LWP is running, Win32::GUI isn't listening to events,
which is why the window appears to freeze (it's really just not listening
to your mouseclicks or your window focus).
Besides doing a lot of magic, you may want to look into setting the network
timeouts on LWP to something really low like 2 seconds. In this event, the
window will freeze for only 2 seconds (at most).
As it is now, the window will freeze until LWP feels like giving control
back - if your network is slow or there is network congestion, this could
be as much as three minutes or more (depends on your machine and connection).
.sig on other machine.
Get latest updates about Open Source Projects, Conferences and News.