I have a COM object that was written in VB which I use in a VC++ app. I am passing a pointer to the object between two threads. The creating thread uses a new to create the thread, calls the objects CreteaDispatch as so someCOMMObj->CreateDispatch( CLSID_SOMECLASS), and calls some of the objects function in order to initialize it. This all works fine. I pass the object as shown below
SomeThread receives the pointer properly, which means that I have looked at the address and know that they are the same. I then call CoInitialize( NULL) from the receiving thread, but when I go to call any function of the Com object an exception of some type is thrown. It is not a COleDispatchException *, or CException * I am explicitly catching those. What could be going on? Is there any way that I can tell wat the exception is that is being thrown?