Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FREAD function for named pipe freezes when nothing is re
Message
 
 
To
27/09/2005 14:00:58
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01053571
Message ID:
01053591
Views:
8
You don't have much control over FREAD() function. You may look into using WIndows API directly. Check http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipc/base/named_pipe_operations.asp and http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipc/base/named_pipe_type_read_and_wait_modes.asp.

>
>I'm making a mechanism for reading/writing to a named pipe using low level function FOPEN, FWRITE and FREAD. It worked fine, but FREAD function makes the program to freeze when nothing comes from the named pipe. I could do nothing to stop the reading process. The system gets crashed or I have to force something to be sent. Do you know how can I set a timeout or interrupt the FREAD process?
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform