std.stdio.File is throwing with the message of: "Access Violation"

nov sorryno at em.ail
Fri Aug 20 05:22:20 UTC 2021


On Friday, 20 August 2021 at 04:27:34 UTC, Jesse Phillips wrote:
>> For me, this code generates the Message Box. Does this happen 
>> for you?

no errors
https://run.dlang.io/is/4tlm3p
```D
void main() {
     try {
        import std.stdio: File;
        File file = File(__FILE__,"r");
        file.close();
    }
    catch(Throwable e) {
        import std.stdio: writefln;
        writefln("err=%s", e.msg);
    }
}
```


More information about the Digitalmars-d-learn mailing list