Original Post
Hello! Well after installing VS 2005 and eventually getting my code to compile without all the depricated warnings with fopen(), strupr() and annoying scoped out int i = 0; i < whatever etc etc inside a alot of functions im getting memory leaks being picked up using _CrtDumpMemoryLeaks() where as before hand using .NET 2003 I wasn't... I've narrowed it down to this bit of code: void Model3DS::DeleteModel( t3DModel* pModel ) { int i = 0; for( i = 0; i < pModel->numOfObjects; i++ ) { if( pModel->pObject.pFaces != NULL ) { delete [] (pModel->pObject.pFaces); pModel->pObject.pFaces = NULL; } if( pModel->pObject.pNormals != NULL ) { delete [] (pModel->pObject.pNormals); pModel->pObject.pNormals = NULL; } if( pModel->pObject.pVerts != NULL ) { delete [] (pModel->pObject.pVerts); pModel->pObject.pVerts = NULL; } if( pModel->pObject.pTexVerts != NULL ) { delete [] pModel->pObject.pTexVerts; pModel->pObject.pTexVerts = NULL; } } pModel->pObject.clear(); pModel->pMaterials.clear(); pModel = NULL; } Can anyone think of a reason why VS 2005 would report the .3DS model as not free'd and .NET 2003 says everything is fine? Cheers!