deleting values of a CArray?
Hey all, I'm having a problem with freeing memory. I have a CArray composed of pointers to classes allocated on the heap(via new). The problem is on destruction. The code is simple and syntax correct, I'm just getting an Unhandled Exception when it tries to free it(It's not NULL, 0xccd0323 is an example of the address). This could be corrupt data, but I am sure it isn't corrupt before it is being freed because I can use the data throughout the program. Here's how I delete them:
for( int i=0; i<m_Packets.GetCount(); i++ )