Hi,

If you want your icon to interact with the user you have to enter the
dialogue phase at some point.

I assume the you are waiting on the socket for a reply? If that is the case,
then the solution is not straightforward, unless you use threads (one thread
doing the sockets, with the other dealing with the gui).

There is another solution if you are prepared to poll the sockets. I had a
application where a server was processing information from several clients.
The application had to provide logging information (as data arrived from the
sockets) into a window. The polling function looped round all open sockets
without waiting. The polling function was in turn called by a timer. All
though it sounds quite clunky, it worked quite well.

Does that make any sense? I might not have understood what you want to do.

Cheers,

jez.


----- Original Message ----- 
From: "Nigel Cannings" <[EMAIL PROTECTED]>
To: <perl-win32-gui-users@lists.sourceforge.net>
Sent: Thursday, January 15, 2004 5:16 PM
Subject: [perl-win32-gui-users] Avoiding applications hanging?


> hi there
>
> I have a console application, that I want to have show an icon on the
status
> bar - This is no problem with Win32::GUI::Icon.
>
> However, I do not want the application to hang, waiting for an event from
> the (hidden) window - Really the icon is there to show the console app is
> running, and also to be clicked to exit.
>
> Is there any way to display the icon, but allow the main application to
> carry on doing its thing in the background (my application is listening
for
> a socket connection)
>
> Many thanks
>
> Nigel
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> Perl-Win32-GUI-Users mailing list
> Perl-Win32-GUI-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users


Reply via email to