I've declared CStringArray m_saRule.
When I want to release it, I use the following code.
int nNumRule = m_saRule.GetSize();
for(int pos=0; pos<nNumRule; pos++)
delete m_saRule[pos];
m_saRule.RemoveAll();
But it has an error in runtime.
What's wrong? How can I release it?
Thank you very much.
When I want to release it, I use the following code.
int nNumRule = m_saRule.GetSize();
for(int pos=0; pos<nNumRule; pos++)
delete m_saRule[pos];
m_saRule.RemoveAll();
But it has an error in runtime.
What's wrong? How can I release it?
Thank you very much.