<br><font size=2 face="sans-serif">Thank you for your answer.</font>
<br>
<br><font size=2 face="sans-serif">I just tried to lock the file manually
and it works</font>
<br><font size=2 face="sans-serif">But I recognized when zope reports those
errors with locking, the reported file can't be opened in the filesystem
also, so it is really locked. It seems that zope doesn't unlock it and
so if zope tries to access it again (thus locking it again) it can't because
it is locked... (I never call the locking-function manually)</font>
<br><font size=2 face="sans-serif">Altough the error doesn't have any effect
on the website I'm running... Kinda strange..</font>
<br>
<br><font size=2 face="sans-serif">-- Wolfgang</font>
<br>
<br><tt><font size=2>&quot;Dieter Maurer&quot; &lt;dieter@handshake.de&gt;
schrieb am 02.08.2008 09:45:50:<br>
<br>
&gt; <br>
&gt; Wolfgang Lausenhammer wrote at 2008-8-1 09:20 +0200:<br>
&gt; &gt; ...<br>
&gt; &gt;__init__<br>
&gt; &gt; &nbsp;File &quot;D:\zope\2.11.1\Zope\lib\python\ZODB\lock_file.py&quot;,
line 42, in <br>
&gt; &gt;_lock_file<br>
&gt; &gt;LockError: Couldn't lock <br>
&gt; &gt;'D:\\workspace_zope\\xla-2008/var/Stdcontainer_o.fs.lock'<br>
&gt; <br>
&gt; A look at the code reveals:<br>
&gt; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; # Windows<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; def _lock_file(file):<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Lock just the first byte<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msvcrt.locking(file.fileno(),
msvcrt.LK_NBLCK, 1)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; except IOError:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; raise LockError(&quot;Couldn't
lock %r&quot; % file.name)<br>
&gt; <br>
&gt; Thus, your Windows operating system reported a problem<br>
&gt; in &quot;msvcrt.locking&quot;. <br>
&gt; <br>
&gt; Emulate the operation in an interactive Python interpreter<br>
&gt; and more carefully look at the error indication.<br>
&gt; Consult your OS documentation to find out the reasons for the problem.<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; -- <br>
&gt; Dieter<br>
</font></tt>