[windows] Can't delete a closed file?
    Cym13 
    cpicard at openmailbox.org
       
    Thu May  9 11:31:20 UTC 2019
    
    
  
On Thursday, 9 May 2019 at 11:07:53 UTC, Andre Pany wrote:
> On Thursday, 9 May 2019 at 10:09:23 UTC, Cym13 wrote:
>> Hi,
>>
>> this is likely not related to D itself but hopefully someone 
>> can help me with this since I'm rather new to windows 
>> programming, I mainly work on linux. I'm trying to bundle a 
>> DLL in a binary, write it in a temp folder, use it and remove 
>> the dangling file.
>>
>> [...]
>
> I can't explain the behaviour, but you could store the temp 
> file name in a string array and remove these file in the module 
> destructor. That's the way how dub handles temp files/folders.
>
> https://github.com/dlang/dub/blob/master/source/dub/internal/utils.d#L98
>
> Kind regards
> Andre
No luck there.
    
    
More information about the Digitalmars-d-learn
mailing list