Click here to Skip to main content
       

ATL / WTL / STL

 
AnswerRe: Keep program open and running PinmvpRichard MacCutchan8-Oct-12 22:14 
GeneralRe: Keep program open and running PinmemberLucidation9-Oct-12 11:14 
GeneralRe: Keep program open and running PinmvpRichard MacCutchan9-Oct-12 11:19 
AnswerRe: Keep program open and running PinmemberStephen Hewitt11-Oct-12 21:45 
QuestionUSBView Compile Error PinmemberJim Fell5-Oct-12 10:17 
AnswerRe: USBView Compile Error PinmemberWes Aday5-Oct-12 10:33 
GeneralRe: USBView Compile Error PinmemberJim Fell10-Oct-12 8:04 
QuestionFree memory allocated by std::multimap Pinmemberkhaliloenit4-Oct-12 2:41 
Hello,
 
I have the multimap :
TranslationTypeMap  m_TranslationsMap;
where
typedef std::multimap< std::pair<CString, CString>, structTranslationData> TranslationTypeMap;
and
struct structTranslationData
{
    std::wstring wstrTranslationId;
    std::wstring wstrTextTranslated;
};
here an example of insertion in this map:
structTranslationData pstTranslationData;
pstTranslationData.wstrTranslationId = xxxx;            pstTranslationData.wstrTextTranslated = xxxx;     
strIdCaption = yyyy;
strIdLang    = zzzz;            m_TranslationsMap.insert(std::make_pair( std::make_pair(strIdCaption, strIdLang), pstTranslationData ) );
And finaly I write the code below to free memory used by this multimap:
m_TranslationsMap.erase(m_TranslationsMap.begin(), m_TranslationsMap.end());
 
can we say that memory is free ?
if not , what is the good way to do this ?
 
Thank you
AnswerRe: Free memory allocated by std::multimap Pinmemberpasztorpisti6-Oct-12 15:26 
AnswerRe: Free memory allocated by std::multimap [modified] PinmemberStephen Hewitt11-Oct-12 21:53 
GeneralRe: Free memory allocated by std::multimap Pinmemberpasztorpisti11-Oct-12 22:53 
Questionhow to import COM interface methods in Win32 dll? Pinmemberlitu kumar30-Sep-12 19:58 
AnswerRe: how to import COM interface methods in Win32 dll? Pinmember«_Superman_»1-Oct-12 21:29 
GeneralOff topic PinmvpRichard MacCutchan2-Oct-12 2:55 
GeneralRe: Off topic Pinmember«_Superman_»2-Oct-12 3:00 
GeneralRe: Off topic PinmvpRichard MacCutchan2-Oct-12 3:23 
QuestionTooltip for ATL toolbar PinmemberSakhalean24-Sep-12 18:43 
QuestionCAsyncSocket Send( arguments ) [modified] Pinmemberbkelly1318-Sep-12 16:13 
AnswerRe: CAsyncSocket Send( arguments ) PinmvpRichard MacCutchan18-Sep-12 21:50 
GeneralRe: CAsyncSocket Send( arguments ) Pinmemberbkelly1319-Sep-12 12:13 
AnswerRe: CAsyncSocket Send( arguments ) Pinmemberpasztorpisti29-Sep-12 23:52 
GeneralRe: CAsyncSocket Send( arguments ) PinmvpRichard MacCutchan30-Sep-12 1:07 
GeneralRe: CAsyncSocket Send( arguments ) Pinmemberpasztorpisti30-Sep-12 3:16 
GeneralRe: CAsyncSocket Send( arguments ) PinmvpRichard MacCutchan30-Sep-12 4:00 
GeneralRe: CAsyncSocket Send( arguments ) Pinmemberpasztorpisti30-Sep-12 4:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.140814.1 | Last Updated 14 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid