Hi everybody,
In my application i have created a simple function which delete memory of specific pointer, you could find its following code:
void LoadHistoDB:eleteHistoNorm()
{
if(pHistoDBNorm!=NULL)
{
delete[] pHistoDBNorm;
pHistoDBNorm=NULL;
}
}
but when i call this function in debug mode, i could read in a message box this following:
"User breakpoint called from code at 0x77f8629c"
and when i try to debug step by step (with F11 ) it calls this function:
void __cdecl operator delete(void* p)
{
#if !defined(_AFX_NO_DEBUG_CRT) && defined(_DEBUG)
_free_dbg(p, _NORMAL_BLOCK);
#else
free(p);
#endif
}
and the if condition is verified so i have the message box mentionned above
so if someone could explain me where is the problem?
thans in advance
jayjay
tell me if you need the whole code
In my application i have created a simple function which delete memory of specific pointer, you could find its following code:
void LoadHistoDB:eleteHistoNorm()
{
if(pHistoDBNorm!=NULL)
{
delete[] pHistoDBNorm;
pHistoDBNorm=NULL;
}
}
but when i call this function in debug mode, i could read in a message box this following:
"User breakpoint called from code at 0x77f8629c"
and when i try to debug step by step (with F11 ) it calls this function:
void __cdecl operator delete(void* p)
{
#if !defined(_AFX_NO_DEBUG_CRT) && defined(_DEBUG)
_free_dbg(p, _NORMAL_BLOCK);
#else
free(p);
#endif
}
and the if condition is verified so i have the message box mentionned above
so if someone could explain me where is the problem?
thans in advance
jayjay
tell me if you need the whole code