Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error File is Not Open
Message
 
 
À
15/09/2015 14:22:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01624619
Message ID:
01624641
Vues:
43
The application reside on the network drive. And in no other part of the application this error occurs. So I can't see that the AV would cause this problem just in this specific point. And not always but quite often.
Thank you.

>Is this on a local drive, or is this off a network share?
>Is there a possibility of an antivirus/antimalware interfering?
>
>I'd seen situations where some operations (like PACK) that may implicitly involve closing a file and immediately re-opening it would be interfered by an antivirus (e.g. the moment the file is closed, the antivirus opens it scan it -- the re-open operation ends up failing because the antivirus has the file opened exclusively).
>
>>Hi,
>>
>>I have trapped (using Try / Catch) an error "File is not open" in the following section of the code:
>>
>>
>>IF SELECT("V_WO_NUM") > 0 
>>	SELECT V_WO_NUM
>>	INDEX ON FIELD1 TAG FIELD1
>>	INDEX ON FIELD2 TAG FIELD2
>>	INDEX ON FIELD3 TAG FIELD3
>>	INDEX ON FIELD4 TAG FIELD4
>>	INDEX ON FIELD5 TAG FIELD5
>>	INDEX ON FIELD6 TAG FIELD6
>>	SET ORDER TO TAG FIELD3
>>ENDIF 
>>
>>
>>Before the above code the cursor V_WO_NUM is created by SQL SELECT (getting data from a VFP table).
>>
>>What could possible be wrong with the above (not one time but almost every other day) that it causes the problem? And I could never duplicate this error on my PC.
>>
>>TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform