In my application i have a debug error message that occurs when i want to delete a pointer.
in the code:
int *pTabBinPort=new int[m_dlgAsset];
.
.
.
.
delete []pTabBinPort;
i do that at the end of a function, and when i do debug test when it arrives to this point a message error box arrives and i could read this message:
Debug error!
Program : D:\CalcRiskPort\Debug\CalcRiskPort.exe
DAMAGE : before Normal block(#74) at 0x00301E20
So, is anybody could explain to me what is the problem?
Thanks in advance for your answers
jayjay
in the code:
int *pTabBinPort=new int[m_dlgAsset];
.
.
.
.
delete []pTabBinPort;
i do that at the end of a function, and when i do debug test when it arrives to this point a message error box arrives and i could read this message:
Debug error!
Program : D:\CalcRiskPort\Debug\CalcRiskPort.exe
DAMAGE : before Normal block(#74) at 0x00301E20
So, is anybody could explain to me what is the problem?
Thanks in advance for your answers
jayjay