Thanks for the analysis, we have to check the code. Regarding params.CreateFlags not initialized: The complete params structure (including CreateFlags) is initialized by RT_ZERO(params);