Click here to Skip to main content
15,898,825 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionWill sort method in STL cause memory disorder? Pin
Yu Yang15-Nov-03 9:40
Yu Yang15-Nov-03 9:40 
AnswerRe: Will sort method in STL cause memory disorder? Pin
jbarton17-Nov-03 5:20
jbarton17-Nov-03 5:20 
GeneralHINSTANCE Pin
alex.barylski15-Nov-03 8:36
alex.barylski15-Nov-03 8:36 
GeneralRe: HINSTANCE Pin
Michael Dunn15-Nov-03 16:39
sitebuilderMichael Dunn15-Nov-03 16:39 
GeneralCImageList Pin
alex.barylski14-Nov-03 14:47
alex.barylski14-Nov-03 14:47 
GeneralRe: CImageList Pin
Michael Dunn14-Nov-03 16:00
sitebuilderMichael Dunn14-Nov-03 16:00 
GeneralRe: CImageList Pin
alex.barylski14-Nov-03 16:58
alex.barylski14-Nov-03 16:58 
GeneralRe: CImageList Pin
Michael Dunn14-Nov-03 18:20
sitebuilderMichael Dunn14-Nov-03 18:20 
Hockey wrote:
but does this mean then that the HIMAGELIST handle is left floating around?

Yes, but...

Hockey wrote:
Wouldn't this waste or cause memory leaks of any kind or are these objects destroyed when your application ends?

No, because when your process exits, all memory and resources it was using go away too (memory gets reclaimed by the OS). However, it's still good practice to not be sloppy, and properly free/destroy/delete resources in your cleanup code.

If you want a class that destroys the image list in the destructor, check out this page[^]

--Mike--
Ericahist | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber
Pinky, are you pondering what I'm pondering?
I think so Brain, but if we shaved our heads, we'd look like weasels!

GeneralRe: CImageList Pin
umeca7414-Nov-03 23:04
umeca7414-Nov-03 23:04 
GeneralEnter key in rich edit control Pin
ted_yu14-Nov-03 7:48
ted_yu14-Nov-03 7:48 
GeneralComposite control Drag & Drop Pin
Member 31248914-Nov-03 0:19
Member 31248914-Nov-03 0:19 
Generalini file Pin
jasu12-Nov-03 22:36
jasu12-Nov-03 22:36 
GeneralWTl in ATL 7 control Pin
Gabriel.P.G12-Nov-03 9:25
Gabriel.P.G12-Nov-03 9:25 
GeneralProblem with atl vc7 and sinkmap Pin
_Magnus_12-Nov-03 0:48
_Magnus_12-Nov-03 0:48 
GeneralRe: Problem with atl vc7 and sinkmap Pin
geo_m12-Nov-03 3:04
geo_m12-Nov-03 3:04 
GeneralRe: Problem with atl vc7 and sinkmap Pin
_Magnus_12-Nov-03 3:25
_Magnus_12-Nov-03 3:25 
GeneralRe: Problem with atl vc7 and sinkmap Pin
Michael Dunn12-Nov-03 7:25
sitebuilderMichael Dunn12-Nov-03 7:25 
GeneralRe: Problem with atl vc7 and sinkmap Pin
_Magnus_12-Nov-03 21:46
_Magnus_12-Nov-03 21:46 
GeneralSetup problem of the Atl project Pin
Fox Ray11-Nov-03 20:42
Fox Ray11-Nov-03 20:42 
GeneralRe: Setup problem of the Atl project Pin
geo_m12-Nov-03 3:11
geo_m12-Nov-03 3:11 
GeneralRe: Setup problem of the Atl project Pin
Fox Ray12-Nov-03 13:21
Fox Ray12-Nov-03 13:21 
GeneralRe: Setup problem of the Atl project Pin
geo_m15-Nov-03 2:18
geo_m15-Nov-03 2:18 
GeneralCasting an interface to an internal class Pin
Giles11-Nov-03 11:07
Giles11-Nov-03 11:07 
GeneralRe: Casting an interface to an internal class Pin
Tim Smith11-Nov-03 11:54
Tim Smith11-Nov-03 11:54 
GeneralRe: Casting an interface to an internal class Pin
Michael Dunn11-Nov-03 13:37
sitebuilderMichael Dunn11-Nov-03 13:37 

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.