Original Post
I have a problem using memory, i dont know why, here it is
if have allocated a LPDIRECT3DTEXTURE9 texture
and it doesnt get release from the memory, here is the code
// when initalizing
m_pd3dDevice->CreateTexture(256, 256, 0, D3DUSAGE_RENDERTARGET, m_d3dsdBackBuffer.Format, D3DPOOL_DEFAULT, &texture,NULL);
// and when releasing
SAFE_RELEASE(texture);
// but the direct3d still giving me the problem about the non zero refrence problem (meaning the direct 3d is not cleaned probably)
by the way when i delete the creation of the texture,the problem does not appear, so iam sure that this texture is not freed.