Click here to Skip to main content
15,909,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Nevermind Pin
jkirkerx4-Apr-12 15:27
professionaljkirkerx4-Apr-12 15:27 
QuestionSorting CMFCListCtrl on multiple columns Pin
David Crow4-Apr-12 10:53
David Crow4-Apr-12 10:53 
QuestionMemory Leaks Pin
ITISAG4-Apr-12 9:23
ITISAG4-Apr-12 9:23 
QuestionRe: Memory Leaks Pin
David Crow4-Apr-12 10:42
David Crow4-Apr-12 10:42 
AnswerMemory Leaks Pin
ITISAG4-Apr-12 10:48
ITISAG4-Apr-12 10:48 
AnswerRe: Memory Leaks Pin
David Crow4-Apr-12 10:55
David Crow4-Apr-12 10:55 
GeneralMemory Leaks Pin
ITISAG4-Apr-12 10:56
ITISAG4-Apr-12 10:56 
AnswerRe: Memory Leaks Pin
Chuck O'Toole4-Apr-12 14:10
Chuck O'Toole4-Apr-12 14:10 
The memory that "leaked" is the address space of the program you are running. What happens to long running programs is that they lose track, i.e. leak, allocated memory so they grow over time, eventually running out of memory (virtual address space). At that time, malloc(), new, or other such calls that request more memory fail and the program will probably start misbehaving.

However, when you stop the program, kill it with task manager, click the big "X" to close the window, or other such ways to stop programs in Windows (or Linux or whatever), the program is removed from physical memory and all that "lost" memory is given back.

The Operating System (Windows, Linux, etc) never really loses track of the memory, only the program running does. All is recovered when the program dies (in natural or unnatural ways).

Back in the '60s, we used to say that certain operations (like right or left shifts) dropped the discarded bits in the "bit bucket". We'd tell Computer Science 1 students that the bit bucket needed to be periodically emptied Big Grin | :-D Same thing here, we don't need to go back and mop up the leaks Laugh | :laugh:
GeneralMemory Leaks Pin
ITISAG5-Apr-12 3:28
ITISAG5-Apr-12 3:28 
AnswerRe: Memory Leaks Pin
Chris Losinger5-Apr-12 1:10
professionalChris Losinger5-Apr-12 1:10 
GeneralMemory Leaks Pin
ITISAG5-Apr-12 3:27
ITISAG5-Apr-12 3:27 
AnswerRe: Memory Leaks Pin
Iain Clarke, Warrior Programmer8-Apr-12 6:22
Iain Clarke, Warrior Programmer8-Apr-12 6:22 
QuestionBSTR to DWORD ? Pin
MrKBA4-Apr-12 3:28
MrKBA4-Apr-12 3:28 
AnswerRe: BSTR to DWORD ? Pin
Rajesh R Subramanian4-Apr-12 3:48
professionalRajesh R Subramanian4-Apr-12 3:48 
GeneralRe: BSTR to DWORD ? Pin
MrKBA4-Apr-12 3:56
MrKBA4-Apr-12 3:56 
AnswerRe: BSTR to DWORD ? Pin
Jochen Arndt4-Apr-12 4:19
professionalJochen Arndt4-Apr-12 4:19 
AnswerRe: BSTR to DWORD ? Pin
Iain Clarke, Warrior Programmer8-Apr-12 6:25
Iain Clarke, Warrior Programmer8-Apr-12 6:25 
Question6F00 return on reading of smard card ? Pin
Le@rner3-Apr-12 21:40
Le@rner3-Apr-12 21:40 
AnswerRe: 6F00 return on reading of smard card ? Pin
Richard MacCutchan3-Apr-12 22:05
mveRichard MacCutchan3-Apr-12 22:05 
GeneralRe: 6F00 return on reading of smard card ? Pin
Le@rner4-Apr-12 22:44
Le@rner4-Apr-12 22:44 
GeneralRe: 6F00 return on reading of smard card ? Pin
Richard MacCutchan4-Apr-12 23:58
mveRichard MacCutchan4-Apr-12 23:58 
QuestionQuestion regarding MFC Pin
tasumisra3-Apr-12 17:40
tasumisra3-Apr-12 17:40 
AnswerRe: Question regarding MFC Pin
_AnsHUMAN_ 3-Apr-12 18:03
_AnsHUMAN_ 3-Apr-12 18:03 
AnswerRe: Question regarding MFC Pin
Chandrasekharan P3-Apr-12 20:06
Chandrasekharan P3-Apr-12 20:06 
GeneralRe: Question regarding MFC Pin
tasumisra3-Apr-12 20:34
tasumisra3-Apr-12 20:34 

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.