Microsoft KB Archive/108633

= BUG: "Invalid File Descriptor" When Saving Read-Only Query =

Article ID: 108633

Article Last Modified on 3/3/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft FoxPro 2.5b
 * Microsoft FoxPro 2.5a
 * Microsoft FoxPro 2.5b
 * Microsoft FoxPro 2.6 Standard Edition

-



This article was previously published under Q108633



SYMPTOMS
Saving a query that was given the Read-Only attribute with the MS-DOS ATTRIB command causes the errors "File Access Denied" and "Invalid File Descriptor." In versions before 5.0a, the machine is then in an unrecoverable loop.



RESOLUTION
Save the modified query to something other than the original name, or to another read-only .QPR file on the hard disk. You will then have two copies of the query, but will not receive the above errors.



STATUS
Microsoft has confirmed this to be a problem the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Problem
WARNING: Close all running applications and save your data before following this procedure. To close all open applications, press the CTRL+ESC keys to open the Windows Task List, and then close all the other applications you have running. Note that following the steps below may produce lost allocation units, lost clusters, or cross-linked files.


 * 1) Create a new query.
 * 2) Save the query and close it.
 * 3) At the MS-DOS prompt, type the following to make the query read-only: attrib query.qpr +r
 * 4) Reopen the query and modify it.
 * 5) Try to save the query.

Unless you are working in Visual FoxPro 5.0a for Windows, the machine will hang in an endless loop. To break the loop, press CTRL+ALT+DEL twice or turn your machine off and on.

Additional query words: lock up hang halt kbvfp300 kbvfp500 kbvfp500a kbvfp250 kbvfp250a kbvfp250b kbvfp260

Keywords: kbbug KB108633

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.