I have a com object developed with the Intel compler for Fortran that performs a long running process. I have succeeded in starting this proces in a seperate thread from the UI but I cannot get a callback from it. I can have it write to a global variable
with a result but I would need a timer on a form to keep checking for this result. I would prefer a more elegant solution. I tried using the backgroundworker class and the code compiles and runs but I receive this exception after the com object is created
at the first reference to any of the objects properties:
Unable to cast COM object of type 'PSAx_ComLib.PSAxComClass' to interface type 'PSAx_ComLib.IPSAxCom'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{0C394B43-839B-4143-B876-8EE16EA36CF5}' failed due
to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
This same code runs fine if I do not try to use a delegate or run as a doWork of a backgroundworker.
Any clues would be appreciated
TIA