Original Post
I have some problems about releasing my IDirect3DDevice9* pd3dDevice struct. In common files in DXut.cpp has a code like that for releasing structure. In the beggining everything was ok but when i tried to open some mesh's.When i try to quit program this Error Message coming. Error Message Why i can't release the the structure? How can i fix the problem? Thanks.
if( pd3dDevice->Release() > 0 )
{
DXUTDisplayErrorMessage( DXUTERR_NONZEROREFCOUNT );
DXUT_ERR( L"DXUTCleanup3DEnvironment", DXUTERR_NONZEROREFCOUNT );
}
// Changing this
pd3dDevice->Release() > 0
// to this
pd3dDevice->Release() > 56
// Working