We encountered quite a strange problem in an application running on Win2k:
when doing a time.sleep(0.1), we occasionally get a traceback:
WindowsError: [Errno 5] Access is denied
I haven't been able to systematically reproduce the problem. The strange
thing is that when it occurs, there's another time.sleep(1) a few lines
above, and this one always works.
Does anybody have an explanation and/or a workaround for this problem? We
may of course delete this statement, but it doesn't sound quite safe: we
have many time.sleep in our code, and if we don't understand why this is
happening, it may break another one later...
Python version is 2.1 and we use multithreading, although not heavily.
TIA
--
- Eric Brunel <eric....@pragmadev.com> -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com
We tried to delete the statement, and it actually crashes later, but on an
even stranger line: it's an if statement, just comparing a plain variable
to an empty string (something like "if v == '':"). And we get the same
error: WindowsError, access denied...
Can somebody help? TIA...
Thomas
This was it! Thank you very much: we'd never figured out this one by
ourselves...