Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using AutoYield with Communications Class
Message
De
19/03/2008 09:13:44
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Using AutoYield with Communications Class
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01303291
Message ID:
01303291
Vues:
54
We have two communications classes. A client and a server. The client and server were both PRG-based at one time, but now the server is contained mostly in a VCX library. They do not talk to one another as they have very different uses. They are both forms because they use the WinSock OCX and there were some issues if they were not based on a form. The server uses AutoYield, set to .F. in the LOAD and then back to .T. in the UNLOAD methods. This seems to work well. I have tried to incorporate AutoYield into the client (PRG-based) side, but it just hangs up when a message is sent out and I have to kill the VFP process. I'm trying to do this because we are having an issue of timing regarding getting ACK responses back from the server (different one than mentioned earlier). Processing is continuing and not picking up the ACK when we run in batch processing. We have built in an artificial wait of 1 second, but we don't like this and it seems to cause heavy response time issues if the network is slow (or something, haven't quite got that figured out yet). Anyone have any ideas on what we can do here?
Répondre
Fil
Voir

Click here to load this message in the networking platform