idascript icon indicating copy to clipboard operation
idascript copied to clipboard

Cannot delete OUTFILE because its being used by another process

Open uriyay opened this issue 7 years ago • 0 comments

In the end of idascript, there is: os.remove(OUTFILE) that fails due to how tempfile.mkstemp() acts, it returns fd and the filename. The fd was remained open, and thus the error (Error 32). So I added this code before the os.remove: os.close(fd) And it solved the issue :)

uriyay avatar Nov 11 '18 14:11 uriyay