microsoft / RTVS

R Tools for Visual Studio.
MIT License
390 stars 110 forks source link

Temporary file used to copy plot as metafile to clipboard isn't deleted #629

Closed huguesv closed 7 years ago

huguesv commented 8 years ago

Something is keeping the file open, and that prevents the File.Delete from succeeding. Not sure what. Even after several minutes after the copy to clipboard is done, the file can't be deleted (for example, from file explorer).

MikhailArkhipov commented 8 years ago

https://technet.microsoft.com/en-us/sysinternals/bb896642.aspx may help

huguesv commented 8 years ago

It's now fixed for bitmap, still need to check metafile.

huguesv commented 8 years ago

Verified that it's still an issue for metafile. System.Drawing.Imaging.Metafile keeps a lock on the file.

MikhailArkhipov commented 8 years ago

MW can wait no biggie

MikhailArkhipov commented 7 years ago

Borderline. Metafiles are not used that much really.