Jump to content

.net "Cannot pass a GCHandle across AppDomains" error


Recommended Posts

So, I'm trying to access a bit of the DirectSound API from LabVIEW. This is because I have multiple sound cards on my system (with the same name) and need to identify them. The built in functionality / "Device ID" technique falls down as sometimes the device IDs can change. Our goal is to use the GUID of the device to identify the device in a more unique, and reliable way (once I have the GUID, I can to a few other tricks that work to make things friendly to my test system).

HOWEVER, when I try to create the DirectSound "DevicesCollection" object to enumerate my sound devices, I get the following error:

post-9667-0-00752700-1313424431.png

Any ideas?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.