Click here to Skip to main content


QuestionUSBView Compile Error PinmemberJim Fell5-Oct-12 11:17 
AnswerRe: USBView Compile Error PinmemberWes Aday5-Oct-12 11:33 
GeneralRe: USBView Compile Error PinmemberJim Fell10-Oct-12 9:04 
QuestionFree memory allocated by std::multimap Pinmemberkhaliloenit4-Oct-12 3:41 
I have the multimap :
TranslationTypeMap  m_TranslationsMap;
typedef std::multimap< std::pair<CString, CString>, structTranslationData> TranslationTypeMap;
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 16:26 
AnswerRe: Free memory allocated by std::multimap [modified] PinmemberStephen Hewitt11-Oct-12 22:53 
GeneralRe: Free memory allocated by std::multimap Pinmemberpasztorpisti11-Oct-12 23:53 
Questionhow to import COM interface methods in Win32 dll? Pinmemberlitu kumar30-Sep-12 20:58 
AnswerRe: how to import COM interface methods in Win32 dll? Pinmember«_Superman_»1-Oct-12 22:29 
GeneralOff topic PinmvpRichard MacCutchan2-Oct-12 3:55 

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.1411028.1 | Last Updated 12 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid