Archived

This topic is now archived and is closed to further replies.

Shadow_Of_Spawn

Invalid Address specified to RtlValidateHeap?

Recommended Posts

I get the error "Invalid Address specified to RtlValidateHeap" when I try to clean up memory. I think the following piece of code is responsible for this error:
CModel::~CModel()
{
	for ( int i = 0 ; i < numOfObjects ; i++ )
	{
		delete [] pObject[i].pFaces;
		delete [] pObject[i].pNormals;
		delete [] pObject[i].pVerts;
	}
}
However I do need to clean up this memory otherwise I have a huge memory leak. Does anyone have a solution to this problem?? SoS

Share this post


Link to post
Share on other sites