Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error File is Not Open
Message
 
 
To
15/09/2015 10:09:34
Bruno Maddalozzo
Informatica Aziendale
Arsie, Italy
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01624619
Message ID:
01624624
Views:
53
>>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
>
>Maybe the issue is permission-related.
>When the file "V_WO_NUM" is physically written to disk (as "V_WO_NUM.tmp", no, as i.e."000084QX000A.TMP"), since it becomes too big to be kept just in memory, you got the error since the user doesn't have permission to write in the Temp folder you selected in your config.fpw file.
>If you have a config.fpw with code like this:
>TMPFILES=c:\temp
>EDITWORK=c:\temp
>PROGWORK=c:\temp
>SORTWORK=c:\temp
>
>be shure that the user has full permission on c:\temp; or just delete those statements, so files are created in Windows Temp directory.
>
>You never get the error since you likely are administrator on your local computer, so you can write in the given folder.
>
>HTH
>Bruno

Very interesting theory. I wonder how I can 'simulate' this on my computer. Thank you!
"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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform