I am curious because I could not find out about this on MSDN. I found that the Release() function is present in various COM objects, which I obviously should use to remove pointers. But I'm not sure if this exactly returns? I used to think that it would return the number of links that still exist for the remaining object, so something like:
while( pointer->Release() > 0 );
Is it obvious to free all references to this pointer?
Or am I not seeing anything?
* note I'm talking about this from the concept of the IDirect3DTexture9::Release() function
c ++ pointers directx com reference-counting
tweetypi
source share