Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using AutoYield with Communications Class
Message
From
19/03/2008 09:13:44
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Using AutoYield with Communications Class
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01303291
Message ID:
01303291
Views:
55
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?
Reply
Map
View

Click here to load this message in the networking platform