COleObjectFactory
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hello, While trying to create a Singleton using a COleObjectFactory derived class I stepped into the COleObjectFactory::CreateInstanceLic(..) MFC function. In this function the following lines of code are present sc = pTarget->InternalQueryInterface(&riid, ppvObject); if (sc == S_OK) { dwRef = pTarget->InternalRelease(); ASSERT(dwRef != 0); } My question is what is the sense of calling the Internalrelease() function:confused:? As far as I understand it the release should only be called when the client releases the object. Could anybody explain this to me please? Richard