In this situation - I MIGHT make a "Test" routine that at start up
does a multi-threaded (potentially multi-process) test... that sends a
request and perhaps stores a START DATETIME (memory or a drop
file..whatever) - that upon return updates END DATETIME.
Meanwhile process or thread #2 - monitors this... (separate process
might help if the OS or Firewall somehow freezes your application .. all
threads or something odd like that)
and if you can tell there is a firewall holding things up or networking
trouble in general... log it, present it to the user to remedy etc..
then they can launch your program again after they get it sorted out:
Your app added to trusted software or whatever).
I like the approach you're taking to keep the GUI responsive. Nice to see.
--Jason
On 9/29/2010 9:58 AM, EarMaster - Hans Jakobsen wrote:
I was happy to find the HeartBeat function, which allows smooth
operation for the user, so he can abort the connection and the GUI is
updated.
Unfortunately it doesn't work when the connection is caught by the
firewall.
When e.g. Zonealarm catches the connection, either because it
completely denies connection or it asks the user to confirm, then my
application locks up until the connection timeout. The HeartBeat
callback is not called during this time and therefore the user cannot
cancel the connection.
Is there a common solution for this problem?
I suppose it can be solved by creating each connection (and the
THTTPSend object) in a new thread, which allows the user to cancel and
connect again quickly if he want (by creating a new thread with a new
THTTPSend instance), but I hope there is a more simple solution.
Best regards,
Hans Jakobsen
EarMaster ApS
[email protected] <mailto:[email protected]>
EarMaster.com - because in music we're all ears!
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public