Another CList issue
It was fixed.
void CList::Clear() { GetFirstNode(); while(m_data_total!=0) DeleteCurrent(); }
Wait for new build.
Thank you.
It was fixed.
void CList::Clear() { GetFirstNode(); while(m_data_total!=0) DeleteCurrent(); }
Wait for new build.
Thank you.
You agree to website policy and terms of use
In CList, when freemode is set to false, my program is responsible to free the objects and it did according.
But in ~CList it calls Clear() which set freemode = true, why?
What makes the matter worse, it then goes into indefinite loop because DeleteCurrent() calls DetachCurrent() which check the pointer m_curr_node (which is deleted by my program). So m_data_total never gets decreased and it goes into infinite loop!