When I look at some of my old code I got confused. The code is a bit long so I have to paste part of it
only.
CArray<CVertex*, CVertex* &> setOfVertex;
//CVertex is an object contains x,y,z coordinates
CVertex *NewVertex=new CVertex();
NewVertex->Set(1,2,3);
//add one object into array
setOfVertex.Add(NewVertex);
//release memory, got problem here
delete(setOfVertex.GetAt(0));
Anyone can help me to direct what's wrong when I
want to release the memory CArray holds? THanks.