Hello Jeffz, to clarify, I copied the ntdll_test.exe file from the temp directory used by winetest and put it into another directory and ran it from there, something like "ntdll_test.exe file". It conistently crashes, but if I run it with procmon in the background, it won't crash. So I assume that there is some race. I have to delete the folder "ntdeletefile" after every crash, otherwise the test would only print something like "fil", "file", "fi" as output. I will try to build the tests at the weekend, probably under linux. I'd try to run e.g. the first half of the tests in file.c, then the second half, etc, maybe some culprit can be found. I had difficulties to compile the tests with VC++ 6, I followed the instructions under http://www.winehq.org/docs/winedev-guide/testing-windows, something with RPC header files doesn't work, you probably need newer versions of them. I may try mingw again, but I don't like it, the msys stuff is really annoying, you have to fetch everything like flex on your own, maybe I missed something, but I found it really uncomfortable.