Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

arrays in a CMap

Status
Not open for further replies.

peterworth

Programmer
Aug 18, 2004
80
GB
if an instance of CMap<DWORD,DWORD&,char*,char*> has arrays of chars set to it's values, when it is deleted, will the arrays also be deleted? i.e. will the equivelent of

delete []charArray;

be called for each value in each pair?
 
on a related topic, does anyone know why this error might occur

memory check error at 0x021F7132 = 0x01, should be 0xFD

when trying to delete a char?

thanks.
 
>will the arrays also be deleted?

No. If it doesn't new [] 'em, dont expect it to delete [] them.

/Per

&quot;It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top