Skip to main content
gamedev.net
🔒 Locked

Memory Problem

Started by Tamer_Malas May 24, 2003 at 2:28 PM 0 replies 600+ views
Original Post
Tamer_Malas
Tamer_Malas
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.
Tmm
don
don
Call IDirect3DDevice9::SetTexture with pTexture set to NULL before destroying the device.



Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.