[Issue 7223] New: Access violation when using rmdirRecurse on folder without modify permissions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 4 13:56:36 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7223

           Summary: Access violation when using rmdirRecurse on folder
                    without modify permissions
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: Jesse.K.Phillips+D at gmail.com


--- Comment #0 from Jesse Phillips <Jesse.K.Phillips+D at gmail.com> 2012-01-04 13:54:27 PST ---
On Windows if you do not have permissions to modify a folder (i.e. delete it)
then the program will crash with an Access Violation instead of throwing a
FileException. I tried adding writeln statements to try and narrow down the
code and instead I end up with an infinite loop. Interesting bits below.

=== Bypassed ===
std.file.FileException at std\file.d(551): C:\New folder\New Text Document.txt:
Acc
ess is denied.
----------------
436098
435F0F
403296
402125
402042
4027C8
40280C
402403
4BF2E5
----------------
object.Error: Access Violation
----------------
436098
435F0F
402042
4027C8
40280C
402403
4BF2E5
----------------
Bypasses std.file.FileException at std\file.d(551)
object.Error: Access Violation

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list