Microsoft KB Archive/67206

= OS/2 &quot;Path/File Access Error&quot; Instead of &quot;Permission Denied&quot; =

Article ID: 67206

Article Last Modified on 11/21/2006



This article was previously published under Q67206



SYMPTOMS
When attempting to open a file under multiple OS/2 processes or in an OS/2 networking environment, a Basic program will incorrectly generate the error message &quot;Path/File access error&quot; (error code 75) when attempting to open a locked file. The error message it should generate is &quot;Permission denied&quot; (error code 70). This problem does not occur in a MS-DOS networking environment, such as when accessing files on a server from a MS-DOS LANMAN workstation. Under these conditions, the Basic program generates the correct error message, &quot;Permission denied.&quot;



STATUS
Microsoft has confirmed this to be a bug in Microsoft Basic Compiler versions 6.00 and 6.00b for MS OS/2, and in Microsoft Basic PDS (Professional Development System) versions 7.00 and 7.10 for MS OS/2. Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
The following test program demonstrates the problem. To reproduce the problem, compile and run the program in an OS/2 session. Then switch to a new session and run the same program again. The file should be locked for writes; the second program is supposed to terminate with a &quot;Permission denied&quot; error, but instead, displays &quot;Path/file access error.&quot;

Code Example
OPEN &quot;TESTFILE&quot; FOR APPEND LOCK WRITE AS #1 PRINT #1, &quot;Hello&quot; WHILE INKEY <> &quot;q&quot;: WEND

Additional query words: BasicCom SR# S901024-38 buglist6.00 buglist6.00b buglist7.00 buglist7.10

Keywords: KB67206

-

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

© Microsoft Corporation. All rights reserved.