Click here to Skip to main content
15,914,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMemory leaks Pin
AnTri21-Nov-02 12:02
AnTri21-Nov-02 12:02 
GeneralRe: Memory leaks Pin
Christian Graus21-Nov-02 12:16
protectorChristian Graus21-Nov-02 12:16 
GeneralRe: Memory leaks Pin
AnTri21-Nov-02 21:03
AnTri21-Nov-02 21:03 
GeneralRe: Memory leaks Pin
Christian Graus21-Nov-02 21:14
protectorChristian Graus21-Nov-02 21:14 
GeneralRe: Memory leaks Pin
AnTri21-Nov-02 21:16
AnTri21-Nov-02 21:16 
GeneralRe: Memory leaks Pin
Alexinuk22-Nov-02 0:38
Alexinuk22-Nov-02 0:38 
GeneralRe: Memory leaks Pin
AnTri22-Nov-02 0:55
AnTri22-Nov-02 0:55 
GeneralRe: Memory leaks Pin
Alexinuk22-Nov-02 1:05
Alexinuk22-Nov-02 1:05 
Are you sure that the ImageList has not already been deleted at that point?

Have you stepped through with the debugger to find out which line is causing the exception?

What are the details of the exception? If it references memory at 0xC0000005 then it sounds like you're trying to access (possibly delete) something that doesn't exist, such as element i+1 of an array that is i long, or an ImageList.

Have you read up on CImageList::DeleteImageList() in MSDN to make sure you're using it the right way and doing all the things you should do.

Try adding pImageList->AssertValid() above pImageList->DeleteImageList() and running a debug build to make sure your pointer is valid.

Let us know how you get on.

-Alex
GeneralChange control and make it visible Pin
Dennis L21-Nov-02 11:50
Dennis L21-Nov-02 11:50 
GeneralRe: Change control and make it visible Pin
Christian Graus21-Nov-02 11:54
protectorChristian Graus21-Nov-02 11:54 
GeneralRe: Change control and make it visible Pin
valikac21-Nov-02 12:48
valikac21-Nov-02 12:48 
GeneralRe: Change control and make it visible Pin
Renjith Ramachandran22-Nov-02 2:12
Renjith Ramachandran22-Nov-02 2:12 
GeneralRe: Change control and make it visible Pin
jhwurmbach22-Nov-02 3:33
jhwurmbach22-Nov-02 3:33 
General_T in C++ Threaded article. Pin
markie_mark21-Nov-02 10:53
markie_mark21-Nov-02 10:53 
GeneralRe: _T in C++ Threaded article. Pin
Dave Bryant21-Nov-02 11:35
Dave Bryant21-Nov-02 11:35 
GeneralRe: _T in C++ Threaded article. Pin
Le centriste21-Nov-02 11:36
Le centriste21-Nov-02 11:36 
GeneralGiving an windowobject its own OnPaint Call in another window Pin
Hustler21-Nov-02 10:42
Hustler21-Nov-02 10:42 
GeneralRe: Giving an windowobject its own OnPaint Call in another window Pin
dima_t21-Nov-02 20:14
dima_t21-Nov-02 20:14 
GeneralPrint from clipboard/print bitmap Pin
XAlien21-Nov-02 10:36
XAlien21-Nov-02 10:36 
GeneralRe: Print from clipboard/print bitmap Pin
Roger Allen21-Nov-02 21:42
Roger Allen21-Nov-02 21:42 
GeneralScaling Progress Steps :: MFC Pin
valikac21-Nov-02 10:31
valikac21-Nov-02 10:31 
GeneralRe: Scaling Progress Steps :: MFC Pin
Christian Graus21-Nov-02 10:35
protectorChristian Graus21-Nov-02 10:35 
GeneralA question about TreeCtrl Pin
Vincent Ye21-Nov-02 10:13
Vincent Ye21-Nov-02 10:13 
GeneralI'v found a way. Anyway, thank you. Pin
Vincent Ye21-Nov-02 10:35
Vincent Ye21-Nov-02 10:35 
GeneralMDI and Multiple File Opens Pin
Chris Meech21-Nov-02 10:11
Chris Meech21-Nov-02 10:11 

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.