This happened inside of a COM Addin that was calling the Windows Media Player. The solution was to wrap the call to the form in a separate thread and to specify the STA apartment to it explicitly.