Versions des environnements
So whats the error 1104 is then?
At least my foxpro rises the error 1104 "Error reading file"
Mainly trick in the code I send is that do things before and avoid the "error reading file" error never happening.
I found that in my case it was always connected to the issue that DBC has left open in my computer (or mayby better to say that fetched TMP DBC has left open but the pointer to DBC in remote has corrupted because of the connection loosed) when connection to the remote was loosed even a while => opening a table (in that DBC) generates the "Error reading file" error.
I tested it as follows:
* Test1
- Connection OK
CLEAR ALL
CLOSE ALL
RELE ALL
USE table1 && DBC table
USE table2 && Free table
use IN table1
use in table2
* unconeected the LAN-wire
- no connection
USE table1
USE table2
* Test2
- Connection OK
CLEAR ALL
CLOSE ALL
RELE ALL
USE table1 && DBC table
USE table2 && Free table
* unconeected the LAN-wire
- no connection
use IN table1
use in table2
USE table1
USE table2
Usually USE table1 generated the ´"error reading file" error but USE table2 never. Always I was able to open table1 without error when I first closed the DBC.
AT
>Hmmm...
>
>As I know "Error reading file" can not be intercepted by an VFP Error Handler. If so, how your code works?
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement