If it's any help to narrow this one down, the same test code using fprintf or vprintf in place of printf does not deadlock and works as expected... Ron