Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Winsock Error - 40020!
Message
 
À
23/05/2000 05:55:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00371849
Message ID:
00396656
Vues:
16
Well I'm still having some problems with winsock myself but I do know that the connect method is asynchronous. So sometimes your loop will wait long enough for winsock to connect and sometimes your code will execute too soon.

Try putting the code (without the wait loop) in the connect event of the winsock control. (it is confusing but winsock has both a connect method and a connect event) The connect event should fire after the connect goes through. (You might want to check the state though)

HTH
-- Chris
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform