Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOPEN() fail faster?
Message
From
20/09/2007 13:47:31
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01255774
Message ID:
01255792
Views:
24
>>>>>>If I issue FOPEN("somefile",1) - write only, unbuffered - it waits a long time - because the file was deliberately opened by me earlier. Is there a way to make it fail faster?
>>>>>
>>>>>What's your OS?
>>>>
>>>>Windows XP or Windows 2000
>>>
>>>Is file on network share or local?
>>
>>During dev it's local. In production it will be on network share accessed by UNC.
>
>It fails immideatelly on local file for me (WinXPSP2Pro).

Same OS WinXPSP2Pro. I've got SQLServer 2005 doing a BACKUP to a file. I'm checking it with a timer using FOPEN to see if I can open the file. It's taking at least 5 seconds before the FOPEN goes on to the next line in the debugger.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform