Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error reading file
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00110264
Message ID:
00110294
Views:
27
>>I'm looking for information on error #1104 (error reading file
>************
>
>I also need help on #1104 (#1105 etc). I have vfp tables on a network. I trap file #9589 when the network goes down and my app tries to access them, but need to close my orphaned work areas. This does not work:
>
> PROCEDURE SafelyCloseDatabases
> LOCAL oSafe
> * issues CLOSE DATABASES ALL and traps any error
> oSafe = CREATEOBJECT("DATABASECLOSER")
> ENDPROC
>
> DEFINE CLASS DATABASECLOSER AS CUSTOM
>
> * object class to trap its own error condition
> * (overrides other error methods)
>
> PROCEDURE Init
> CLOSE DATABASES ALL
> ENDPROC
>
> PROCEDURE Error
> LPARAMETER nError, cMethod, nLine
> SET CONSOLE OFF
> SET TALK OFF
> WAIT "Closing database ..." WIND NOWA
> ENDPROC
>
> ENDDEFINE
>
>You would think "DO SafelyCloseDatabases" would handle things well enough, but no luck - an error dialog pops up with the caption 'Error reading file'.
>
>Any suggestions?
>John Burton

Hi John,

No suggestions here yet. This is a fairly new issue for me. I was also looking at using a Global error routine to capture this error. So your saying even when you capture the error reading file, close databases and reopen,set relations etc, it still doesn't help? That's not good news!

Are you able to get a network error such as file read error to happen when using other packages that use files on the network? Since this is such a new problem for me I havent had the chance to do much experimenting yet?

I'm interested in any input you might have about this problem. Please reply
with any suggestions etc...this is killing me!
John.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform