Grin, BO391 and xoyojank - the problems you are hitting may or may not be related. It is helpful to provide as much information as possible: exact error messages, dxdiag output, debugger output if possible, what's different about the environments/circumstances when it succeeds and when it fails, etc.
But in the cases where both XACT and ...