Weird error message.

BBasile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 16 20:14:23 PDT 2015


On Monday, 17 August 2015 at 00:00:11 UTC, Jonathan M Davis wrote:
> On Sunday, August 16, 2015 21:32:08 Warwick via 
> Digitalmars-d-learn wrote:
>> Dont know what to make of this, I pretty much get it every 
>> other time I call rdmd. It'll alternate between running fine 
>> and then giving me this error...
>>
>> C:\Program Files (x86)\Notepad++>rdmd J:\Code\statproc.d
>> std.process.ProcessException at std\process.d(550): Failed to 
>> spawn
>> new process (The process cannot access the file because
>>   it is being used by another process.)
>> [...]
>> Any ideas?
>
> Well, Windows has file locks, so tyically, if one program has a 
> [...]
> Personally, I wish that Windows didn't have file locks... :(

It's locked unless it's specified during the call to 
`CreateFile()` that the file can be shared for reading/writing 
(FILE_SHARE_READ / FILE_SHARE_WRITE).





More information about the Digitalmars-d-learn mailing list