Post Reply

Forums -> UltraMon™ SDK -> Cannot create an UltraMonSystem object in C#
kraxus   2012-12-04 00:26
Hello,

I try to create UltraMonSystem object in C# using the sdk and all I get is this exception:

Unhandled Exception: System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'ULTRAMONLib.UltraMonSystem'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{4EC0850A-E469-4CAB-8214-9A10FEEE62F7}' failed due to the following error: Schnittstelle nicht unterstützt (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). at Screenchanger.Program.Main(String[] args)

Does anyone have an idea what I can do to get it working?

I'm working on
- Windows 7 64bit SP1
- Ultramon 3.0.10 is installed as trial
Christian Studer   2012-12-04 07:53
Can you send me a sample project which causes the problem? E-mail address is support@realtimesoft.com.

Christian Studer - www.realtimesoft.com
Ed   2018-10-05 08:07
PS I am also on Win7 64bit but using samples from
UltraMon 2.7.0
Ed   2018-10-05 08:12
I don't see my first reply so here it is again.

I am having the exact same error as the original poster but I am running the UltraMon 2.7.0 SysInfo.cpp sample project and when it gets to the line

CoCreateInstance(CLSID_UltraMonSystem, 0, CLSCTX_ALL, IID_IUltraMonSystem2, reinterpret_cast<void**>(&pSys));

I get the error

Unhandled exception at 0x01391223 in SysInfo.exe: 0xC0000005: Access violation reading location 0x00000000.

Win7 Pro 64bit VS2013 UltraMon 2.7.0

Ed
Forums -> UltraMon™ SDK -> Cannot create an UltraMonSystem object in C#

Post Reply