- Posts: 1
- Joined: Sun Mar 23, 2014 8:08 pm
Black Magic SDK Team, I have nearly every api command working for our control software with the ATEM 2 M/E switcher except for the multiviewer commands. I am getting the following error below when I attempt to iterate over the MultiveiwIterator. Calling the Next Method is where the exception occurs.
Here is my code:
IBMDSwitcherMultiViewIterator mViewIterator;
SwitcherAPIHelper.CreateIterator(m_switcher, out mViewIterator);
mViewIterator.Next(out multiView1);
mViewIterator.Next(out multiView2);
Here is the Error:
Unable to cast COM object of type 'System.__ComObject' to interface type 'BMDSwitcherAPI.IBMDSwitcherMultiView'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{231AA55F-EC1D-4FFF-ACE7-3806BA7894BB}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
This feature is not crucial for our customers but I figured I would let you know about the bug. All the other Iterators did not have any issues. Just this one. I am using #region Assembly Interop.BMDSwitcherAPI.dll, v2.0.50727 just for your reference. Language used C#.
For now I will leave it out I suppose.
Here is my code:
IBMDSwitcherMultiViewIterator mViewIterator;
SwitcherAPIHelper.CreateIterator(m_switcher, out mViewIterator);
mViewIterator.Next(out multiView1);
mViewIterator.Next(out multiView2);
Here is the Error:
Unable to cast COM object of type 'System.__ComObject' to interface type 'BMDSwitcherAPI.IBMDSwitcherMultiView'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{231AA55F-EC1D-4FFF-ACE7-3806BA7894BB}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
This feature is not crucial for our customers but I figured I would let you know about the bug. All the other Iterators did not have any issues. Just this one. I am using #region Assembly Interop.BMDSwitcherAPI.dll, v2.0.50727 just for your reference. Language used C#.
For now I will leave it out I suppose.