Avatar of MadDavid
MadDavid

asked on 

XAudio2Create (CoCreateInstance) returning undocumented error. How do I fix?

I've been working on a sound engine using XAudio2.

On my development computer everything works.
    (AMD FX08350, with a Sound Blaster X-Fi Xtreme Audio card, running Windows 7 64-bit and using DirectX 11.  Code::Blocks, TDM MinGW, and DirectX SDK installed.)

When I move the program to a different computer (Intel core i5-3470, on-board sound card, running Windows 7 64-bit and using DirectX 11) I get an HRESULT of 0xFB06A210 from XAudio2Create (which redirects to CoCreateInstance).

Looking at HRESULT, this has an S,R,C,N,and r of 1, a Facility of 0x0306, and a code of A210.  I can't find any information on what this means or how to get XAudio2 to work on the test computer?

Can anyone help me?
Microsoft DevelopmentC++Microsoft Legacy OSGame Programming

Avatar of undefined
Last Comment
MadDavid
Avatar of sarabande
sarabande
Flag of Luxembourg image

you may search for the class id passed to CoCreateInstance in your local registry (probably below HKLM\Software\Wow6432Node). if there are entries, you could check whether those entries also exist on the second computer.

also check event viewer (eventvwr) whether there is more information when the error occurred.

Sara
ASKER CERTIFIED SOLUTION
Avatar of MadDavid
MadDavid

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
C++
C++

C++ is an intermediate-level general-purpose programming language, not to be confused with C or C#. It was developed as a set of extensions to the C programming language to improve type-safety and add support for automatic resource management, object-orientation, generic programming, and exception handling, among other features.

58K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo