0

When I call the Release method for my Direct3D9 device it returns S_FALSE but I can't find anything that explains why this value would be returned.

From what I can gather, S_FALSE means that it has succeeded but hasn't had to do anything but I only release once.

I also don't think the method does succeed as I am left with a fullscreen DirectX window even after the window has been destroyed and the device released.

DrYap
  • 6,525
  • 2
  • 31
  • 54

1 Answers1

2

IUnknown::Release does not return a HRESULT as you assumed, it instead returns a ULONG indicating outstanding reference count (of this COM object).

Roman R.
  • 68,205
  • 6
  • 94
  • 158
  • Ah, I found I hadn't released one of my textures which would have had a reference to it. That caused Release to return 1 which is the same as S_FALSE. Thank you. – DrYap Nov 06 '11 at 08:34