As a further note. I'm pretty sure that none of the tests make use of av_lockmgr_register...so there's very little guarantee that this function is working correctly (particularly now that it has gotten so complicated). Manfred