Like it happens for memory or file handles, does Windows also frees averything releated to Direct3D or COM in general? Or I must call ->Release() for everything that I've created before closing the program?
There is a question on Stack Overflow talking about that. They say that Windows always will free everything.
https://stackoverflow.com/questio...-release-before-i-exit-my-process
But in this tutorial, they say it won't, and everything will keep in memory even after the program has closed.
http://www.directxtutorial.com/Lesson.aspx?lessonid=9-4-1
From this tutorial:
Why? Well, let's say it would be a bad thing to do otherwise. Basically, if you create Direct3D, but never close it, it will just keep on running in the background of the computer until your next reboot, even after the program itself closes. Bad. Especially bad if you have a lot of resources in your game. Releasing these two interfaces let's everything off the hook and allows Windows to take back it's memory.