#41 closed defect (invalid)
Crash by niet-tijdige release van file
Reported by: | michiel | Owned by: | sander |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Standard factory client | Keywords: | |
Cc: | Time estimate: |
Description
Traceback (most recent call last):
File "factory.py", line 223, in <module>
factory.run()
File "factory.py", line 208, in run
while self.loop():
File "factory.py", line 171, in loop
(format, document) = backend.process(job)
File "c:\Downloads\factory\src\backends\cli.py", line 63, in process
os.unlink(result)
WindowsError?: [Error 32] The process cannot access the file because it is being
used by another process: '
Change History (1)
comment:1 Changed 11 years ago by sander
- Resolution set to invalid
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
This is a problem with the application that you are using, not with the factory client. The application is not releasing it's file when it is done for some reason.
I suggest you report this to the application developers. As a workaround, you could create a .bat file wrapper for your CLI application. At the end, make it sleep for a few seconds to wait for the application to release it's resources.
Note that Windows does not have a sleep command or something similar. You need to install it manually or fake it using e.g. the ping command. See:
http://malektips.com/xp_dos_0002.html
http://www.robvanderwoude.com/wait.php