Is it possible to assign the Interface pointer to another interface pointer where both interface pointers point to same class. below is my code for Test.h and Test.cpp
class Test
    {
        ITestPtr testPtr;
        ITestSecondPtr secondPtr;
    };
 Test:: Test()
    {
    testPtr.CreateInstance(__uuidof(MyNamespace::MyClass));
    secondPtr=testPtr;
    }
Here my ITestPtr and ITestSecondPtr points to same C# class MyClass. So to avoid double initilaization of C# class, I assigned testPtr to secondPtr. It is build successfully. But the Runtime throws the Access Violation Excpeption. Please let me know if any solution.