Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error Reading File 1104 - Occasional Lockups
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00545344
Message ID:
00546209
Vues:
33
Hi!

Its strange. Kick out all users, make DBC and related files read-only on the system level, then try to run app again. You will spot this way all points in app that cuase changes in the database. I'm still sute the reason is some code that cause database changes. Try also the most simple - validate database command.

Also, if you have view like 'SELECT * from ...', that * can cause re-reading of all fields structure from the table and trying of updating of the database files (I'm not sure in this, just a thought). So, avout using views like 'select *'. In the view designer you can quickly get rid of '*' just by changing the order of fields in view.

HTH.

>Vlad,
>
>We don't do any modifications to database objects on the fly. One of the more common locations we get this error has the following:
>
>LOCAL lcName, lcParamName, lcViewName
>lcParamName = 'vp' + pcType + 'ID'
>lcViewName = 'sys!' + pcType + '_ExactOnView'
>&lcParamName = pcID
>USE (lcViewName) IN 0 ALIAS cTemp000 Shared
>
>We create the viewname on the fly. But the view already exists. No changes are made to it. The last line with the USE in it is the one where they get the ERROR READING FILE. Then once in awhile, it leaves everything locked up. Other users don't get any error message, they just freeze. If we find the person that has the lock on the .dbc file and knock them off, everyone else resumes execution.
>
>Thanks.
>
>>Hi!
>>
>>What is the exact command that cause the error? Do you modify the database or database objects structure on the fly in the application? Any word on after what moment database is locked by another user?
>>
>>>We currently use VFP 6.0 as a front end running Sql Server 7.0 on the back end. We do most of the interaction with the database using remote views. We have been getting quite a few ERROR READING FILE (1104) errors throughout the day. No single spot in the application errors every time. It can happen at different locations in the application. The users who get the error also seem random. One of the most common locations where we get the error is using a view that only pulls 1 record. The view that is used shares a connection. I believe that all views that share that connection have the ShareConnection property set to True.
>>>
>>>The properties of this view include the following: ShareConnection = True, FetchSize = -1, MaxRecords = -1, FetchAsNeeded = False.
>>>
>>>An addition problem: We may see 10 to 15 of these ERROR READING FILE errors, but maybe once to 3 times per day, the error leaves the user with a lock on the DBC file, locking all of the other users out. Each time we have to get into WinFile and find the user with a lock on the DBC file and knock them out, while every user we have is stuck. This does not help our company's efficiency.
>>>
>>>Microsoft has been no help. Does anybody have any ideas what I might be missing?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform