in reply to Re: Re: Re: Win32::Gui + Threading?
in thread Win32::Gui + Threading?

Although I'm not sure what you're trying to do, you don't have to constantly poll. Maybe something like this pseudo-code:
On button click->add timer to do subroutine A. sub A() { if(socket != EOF) { open socket, read line. } else { kill timer. } }
Hope this helps.