Click here to Skip to main content
16,007,814 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMirrorBlt? Pin
Dov Sherman19-Jun-02 2:16
Dov Sherman19-Jun-02 2:16 
AnswerRe: MirrorBlt? Pin
Chris Losinger19-Jun-02 2:28
professionalChris Losinger19-Jun-02 2:28 
AnswerRe: MirrorBlt? Pin
Christian Graus19-Jun-02 2:53
protectorChristian Graus19-Jun-02 2:53 
GeneralRe: MirrorBlt? Pin
Chris Losinger19-Jun-02 3:44
professionalChris Losinger19-Jun-02 3:44 
GeneralRe: MirrorBlt? Pin
Dov Sherman19-Jun-02 3:47
Dov Sherman19-Jun-02 3:47 
GeneralSetting & Getting ItemData Pin
Steve L.19-Jun-02 1:37
Steve L.19-Jun-02 1:37 
GeneralRe: Setting & Getting ItemData Pin
Steve L.19-Jun-02 1:42
Steve L.19-Jun-02 1:42 
GeneralRe: Setting & Getting ItemData Pin
Michael P Butler19-Jun-02 1:56
Michael P Butler19-Jun-02 1:56 
SetItemData takes a pointer to the allocated memory, so that when you called delete the pointer was no longer valid.

You need to keep the pointer active until you've finished. You could just loop through all your items and delete the pointer returned from GetItemData before you destroy the control. Or like you suggest you could have a list which gets deleted later. I tend to keep a vector of pointers and then free up the memory in the destructor.

Michael Smile | :)


"Eureka" is Greek for "This bath is too hot"
GeneralRe: Setting & Getting ItemData Pin
Steve L.19-Jun-02 2:00
Steve L.19-Jun-02 2:00 
GeneralRe: Setting & Getting ItemData Pin
_Magnus_19-Jun-02 1:50
_Magnus_19-Jun-02 1:50 
GeneralRe: Setting & Getting ItemData Pin
Steve L.19-Jun-02 1:52
Steve L.19-Jun-02 1:52 
Generallock-up catching excel events Pin
Zizilamoroso18-Jun-02 23:56
Zizilamoroso18-Jun-02 23:56 
GeneralRe: lock-up catching excel events Pin
Zizilamoroso19-Jun-02 1:18
Zizilamoroso19-Jun-02 1:18 
GeneralMFC Automation embedded Ms Word window bring to top Pin
Braulio Dez18-Jun-02 23:51
Braulio Dez18-Jun-02 23:51 
GeneralVS7 and Icons Pin
Dennis Alden18-Jun-02 23:51
Dennis Alden18-Jun-02 23:51 
GeneralRe: VS7 and Icons Pin
Dennis Alden19-Jun-02 0:14
Dennis Alden19-Jun-02 0:14 
Generalmemory leak Pin
Rage18-Jun-02 23:34
professionalRage18-Jun-02 23:34 
GeneralRe: memory leak Pin
Prem Kumar18-Jun-02 23:41
Prem Kumar18-Jun-02 23:41 
GeneralRe: memory leak Pin
Rage18-Jun-02 23:45
professionalRage18-Jun-02 23:45 
GeneralRe: memory leak Pin
Prem Kumar18-Jun-02 23:51
Prem Kumar18-Jun-02 23:51 
GeneralRe: memory leak Pin
Rage19-Jun-02 0:07
professionalRage19-Jun-02 0:07 
GeneralRe: memory leak Pin
Prem Kumar19-Jun-02 0:11
Prem Kumar19-Jun-02 0:11 
GeneralRe: memory leak Pin
JohnnyG19-Jun-02 3:16
JohnnyG19-Jun-02 3:16 
GeneralDebug assertion failed Pin
Rsh18-Jun-02 23:24
Rsh18-Jun-02 23:24 
GeneralRe: Debug assertion failed Pin
Rage18-Jun-02 23:36
professionalRage18-Jun-02 23:36 

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

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