Archived

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

Invalid Address specified to RtlValidateHeap?

This topic is 5091 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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