It was fixed.
void CList::Clear() { GetFirstNode(); while(m_data_total!=0) DeleteCurrent(); }
Wait for new build.
Thank you.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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!