ultranet
2005-09-13 21:55:05 UTC
We are ensuring the following:
Each COM thread is CoInitializeEx'ed, and when we exit CoUninitialize'd.
outofproc.CreateInstance(__uuidof(MyClass));
eventSink.DispEventAdvise(outofproc);
// outofproc is then passed in to a constructor which has IOutofprocPtr& var
assigned from it, but i am sure this doesn't increase ref count.
is offset by
eventSink.DispEventUnadvise(outofproc);
outofproc = NULL; // force release
When we exit from our process.
Could this be by design of the 3rd-party COM object? Or does this mean
something is amiss for sure?
Each COM thread is CoInitializeEx'ed, and when we exit CoUninitialize'd.
outofproc.CreateInstance(__uuidof(MyClass));
eventSink.DispEventAdvise(outofproc);
// outofproc is then passed in to a constructor which has IOutofprocPtr& var
assigned from it, but i am sure this doesn't increase ref count.
is offset by
eventSink.DispEventUnadvise(outofproc);
outofproc = NULL; // force release
When we exit from our process.
Could this be by design of the 3rd-party COM object? Or does this mean
something is amiss for sure?