Bug 11185 – Win64: std.stdio.tmpFile does not work
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2013-10-06T09:41:20Z
Last change time
2018-10-16T18:21:25Z
Assigned to
No Owner
Creator
Rainer Schuetze
Comments
Comment #0 by r.sagitario — 2013-10-06T09:41:20Z
module test;
import std.stdio;
void main()
{
File f = File.tmpfile();
}
compiled with "dmd -m64 test.d" and run yields:
std.exception.ErrnoException@std\stdio.d(1025): Could not create temporary file with tmpfile() (Permission denied)
This is caused by the called C runtime function not working to start with. Maybe this is caused by a combintion of my OS (Win8/64) and VS versions (VS2008 or VS2010).