- Posts: 3
- Joined: Wed Jun 15, 2016 3:26 am
I have been trying to work with the ATEM SDK and am have some difficulty, mostly because I am trying to learn how to work with ‘COM’ in the C# environment. While doing research on ‘COM’ with Microsoft documents, and working with the ATEM samples, I thought I had figured it out. So I have been trying to make a connection (get a pointer) to the IBMDSwitcherAudioMixer interface and control the Program Output Gain.
In the development environment I have no errors, and it compiles without any problems. Yet when the app is run it exits citing an ‘Access Violation’. The code in question is:
IBMDSwitcherAudioMixer mxIterator = null;
IntPtr mxIteratorPtr;
Guid mxIteratorIID = typeof(IBMDSwitcherAudioMixer).GUID;
m_switcher.CreateIterator(ref mxIteratorIID, out mxIteratorPtr);
with the last line where the ‘Access Violation’ occurs. The ‘m_switcher’ object is the switcher object gotten through;
m_switcherDiscovery.ConnectTo(address, out m_switcher, out failReason)
from the C# example included with the SDK.
Can someone point me in the right direction?
In the development environment I have no errors, and it compiles without any problems. Yet when the app is run it exits citing an ‘Access Violation’. The code in question is:
IBMDSwitcherAudioMixer mxIterator = null;
IntPtr mxIteratorPtr;
Guid mxIteratorIID = typeof(IBMDSwitcherAudioMixer).GUID;
m_switcher.CreateIterator(ref mxIteratorIID, out mxIteratorPtr);
with the last line where the ‘Access Violation’ occurs. The ‘m_switcher’ object is the switcher object gotten through;
m_switcherDiscovery.ConnectTo(address, out m_switcher, out failReason)
from the C# example included with the SDK.
Can someone point me in the right direction?