S
slonial
Hi,
I am using two STL maps as data member for COM server with
VC++6.0.These two maps are unrelated in the sense that they are storing
different data.
first map is of type(6 MB in size)
std::map<long,ISumInfo*>
and second is of type(3 MB in process)
std::map<string,list<string> >
I want to clear the first map but on clearing the map the memory
doesn't come down for process.But as soon as I clear the second map the
memory comes down is equivalent
to size of both the maps.
I am not able to understand that how two maps are related.
For clearing the first map I have released the IsumInfo objects and
destructors are getting invoked properly for clearing the map I have
tried calling
three ways but the result is same.
//m_siteDB.clear();
//m_siteDB.erase(m_siteDB.begin(), m_siteDB.end());
//std::map<long,ISumInfo*>().swap(m_siteDB);
If somebody have faced this issue,Please let me know
Thanx
Sumit
I am using two STL maps as data member for COM server with
VC++6.0.These two maps are unrelated in the sense that they are storing
different data.
first map is of type(6 MB in size)
std::map<long,ISumInfo*>
and second is of type(3 MB in process)
std::map<string,list<string> >
I want to clear the first map but on clearing the map the memory
doesn't come down for process.But as soon as I clear the second map the
memory comes down is equivalent
to size of both the maps.
I am not able to understand that how two maps are related.
For clearing the first map I have released the IsumInfo objects and
destructors are getting invoked properly for clearing the map I have
tried calling
three ways but the result is same.
//m_siteDB.clear();
//m_siteDB.erase(m_siteDB.begin(), m_siteDB.end());
//std::map<long,ISumInfo*>().swap(m_siteDB);
If somebody have faced this issue,Please let me know
Thanx
Sumit