Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Microsoft XMLHTTP object automation
Message
De
23/03/2006 09:59:41
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Microsoft XMLHTTP object automation
Divers
Thread ID:
01106987
Message ID:
01106987
Vues:
75
Hi all,

I'm extensely using synchrous xml http calls from within a typical fat-client application. Example:

oXMLParser = CREATEOBJECT("Microsoft.XMLHTTP")
oXMLParser.OPEN("get","http://www.mysite/myres.xml",.F.) && sync. call
oXMLParser.SEND() && this line locks up

The whole thing is now working fine in production. Performance is fine except in one situation, "when the Internet is not available". A situation that tends to occurs quite often at customers' premises.

What happens then is the following: the .SEND() action locks the full process up until the "http timeout" is sent until an error is sent and caught by a VFP exception.

Until then the application looks "locked up", frozen in an error state for definitely a time period which is too long.

Any way to handle with that in a more graceful way without resorting to ASYNC calls? A safe API call that would check internet resource availabily beforehand for example?

Francois
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform