EventPipe Events Example - C#

Discussion created by fkeereweer on Sep 15, 2009
Latest reply on Sep 30, 2009 by fkeereweer



I tried to do the "EventPipe Events Example" for C# delivered with the About PI-SDK helpfile. Unfortunately I got the error below here:


Unable to cast COM object of type 'System.__ComObject' to interface type 'PISDK._EventPipeEvents'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{9E679FD4-DE8C-11D3-853F-00C04F45D1DA}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).


This error occurs in next code:


mdbEvents = srv.PIModuleDB.EventPipe; 
// get MDB events pipe


I hope you can help me. Thanks in advance!