   Resolution Switching => out of memory problem
  Helo.We are doing a simple game and cant find a solution to folowingproblem:When we switch resolutions in full sceen a few times we run aut of memory. This hapens with pDevice->Reset and even if we kill the device and make a new one.Please help.P.S:  What is the best way to switch resolutions in DirectX9. Any tutorials? Kill the device and switch in Windows? 
  Before you do a pDevice-Reset() you have to release all VideoRam objects which may be lost on reset. To that category belong objects which are created with D3DPOOL_DEFAULT. Some objects needn´t to be released on reset but have to if you kill the device, to that category belong objects created with D3DPOOL_MANAGED. If you are not sure which objects belong to a category just release all created objects and rebuild them after the reset was performed or the new device was created.Hope it helps. 