Hello,

> I get an error,
> 
> err:win32:_EnterSysLevel (0x4069b27c, lvel 2): Holding 0x4061a1e0, level 3.
> Expect deadlock!
> 
> Do you know what could be the reason ?
> Or what causes such errors ?

This is a facility to prevent deadlock by enforcing an ordering on the
various locks that you can take.  (Some) locks are tagged with a level,
and you are not allowed to take a lock with level N if you already hold
a lock with level >= N.  If everybody respects this rule, deadlocks
(of the type: thread A hold lock 1, wants to take lock 2, which thread
B holds lock 2 and wants to take lock 1 ...) are impossible.

If you violate this rule, deadlocks could occur.  Hence, this warning ...
You'll need to fix the sequence in which locks are taken.

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  [EMAIL PROTECTED]

Reply via email to