Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Reading File error message

Status
Not open for further replies.

gothbabe55

Technical User
Jun 5, 2002
25
AU
Hi All

Hoping for some help. Have recently upgraded a product written in VFP6.5 to a version written in VFP7.0. Now, there is a consistent occurrence of the error message "Error Reading File" when running on a Terminal Services environment. Nothing in the network config has changed, and there is no netword dipping. The space for temp file creation is fine and the setting for the number of files users may have open are also OK.

Desperately needing help!
 
gothbabe55

Can you pinpoint the line that causes the error.
Do you have an error checking scheme?
Try adding an error check procedure so it would give you more information on the error:
Code:
ON ERROR DO errhand WITH ;
   ERROR( ), MESSAGE( ), MESSAGE(1), PROGRAM( ), LINENO( )
PROCEDURE errhand
PARAMETER merror, mess, mess1, mprog, mlineno
CLEAR
messagebox("Error number"+ LTRIM(STR(merror))+chr(13)+;
'Message: ' + mess+chr(13)+'Line number: ' + mess1+chr(13)+;
 'Line #: ' + LTRIM(STR(mlineno))+chr(13)+;
'Programe : ' + mprog)
ENDPROC
Mike Gagnon
 
Yep, we've got all that. The line number and program are different for every place it occurs. It is just popping up all over the place. Thing is, it doesn't seem to be happening on a standard client-server or peer-to-peer network, just in the Terminal Services environment.
 
gothbabe55

Sounds like it's trying to read or open a file that is either not there or it doesn't have access to. Terminal Service create individual folders (like desktop etc..), so either a temp directory is in the wrong place, or the user doesn't have the rights to the given directory. Mike Gagnon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top