Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Let me start by double-checking that I understand the question. If you run something like the below snippet, you expect it to fail eventually, right?</p> <pre><code>while (true) { System.IO.Directory.CreateDirectory( ".\\FooDir" ); System.IO.Directory.Delete( ".\\FooDir" ); } </code></pre> <p>If your application is the only thing running on the system that has a handle open to that file, then this <em>feels</em> like a bug. So knowing the OS version would help. </p> <p>On the other hand, if there is something else in the system that is keeping the handle open for just a little while, then whether this is a bug or not becomes a little more fuzzy. The number of things that try to blindly grok files and directories might surprise you. A naive indexer, for example, might be walking into that directory, enumerating it, looking for files to index and so on -- and if you collide with him, blammo. A similarly naive anti-virus filter, or some other file system filter, might be poking it as well (in this case, it still feels like a bug).</p> <p>There are little things we've done in the OS to try and give services like these ways to get out of your way. Does it repro if you turn the indexer off, if you turn off any anti-virus, any anti-malware? We can go from there, and hopefully we will find that newer bits have it fixed already (that statement had a lot of assumptions in it, I know).</p> <p>One other relatively interesting piece of trivia is that ERROR_ACCESS_DENIED is a Win32 error that is mapped from more than one underlying status in the system (see <a href="http://support.microsoft.com/kb/113996" rel="nofollow noreferrer">this article</a> for example). So if we can dig a little deeper, we may be able to find out what the file system is trying to tell the app (if it's more than access denied).</p> <p>We might end up getting into a conversation about whether you can, in the wild, assume that your app is the only thing poking at your files and directories. You can probably guess where that one will go.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload