Click here to Skip to main content
15,879,490 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
PecuniousPete9-Dec-12 20:23
PecuniousPete9-Dec-12 20:23 
Questionhow to find out the codes who eat up my memory? Pin
Falconapollo7-Dec-12 2:32
Falconapollo7-Dec-12 2:32 
AnswerRe: how to find out the codes who eat up my memory? Pin
Richard MacCutchan7-Dec-12 2:54
mveRichard MacCutchan7-Dec-12 2:54 
QuestionRe: how to find out the codes who eat up my memory? Pin
David Crow7-Dec-12 2:55
David Crow7-Dec-12 2:55 
AnswerRe: how to find out the codes who eat up my memory? Pin
Falconapollo7-Dec-12 3:11
Falconapollo7-Dec-12 3:11 
QuestionRe: how to find out the codes who eat up my memory? Pin
David Crow7-Dec-12 3:25
David Crow7-Dec-12 3:25 
AnswerRe: how to find out the codes who eat up my memory? Pin
Falconapollo7-Dec-12 3:28
Falconapollo7-Dec-12 3:28 
AnswerRe: how to find out the codes who eat up my memory? Pin
Joe Woodbury7-Dec-12 8:30
professionalJoe Woodbury7-Dec-12 8:30 
First, when you do a malloc or new, you extend the heap. For optimization reasons, the memory manager may not return the heap back to the OS immediately. When needing to allocate especially large chunks of memory, you can use a low level API directly or, with some compilers/CRTs, a different heap (for Windows, here's an article discussion various options: http://msdn.microsoft.com/en-us/library/windows/desktop/aa366533%28v=vs.85%29.aspx[^].)

Also note that if you allocate memory and sit around, the OS may page it out. To understand the difference in Windows, look into "private bytes" and "working set".
AnswerRe: how to find out the codes who eat up my memory? Pin
vr9999999998-Dec-12 1:25
vr9999999998-Dec-12 1:25 
AnswerRe: how to find out the codes who eat up my memory? Pin
PecuniousPete11-Dec-12 20:42
PecuniousPete11-Dec-12 20:42 
QuestionImage processing and converter Pin
_Flaviu6-Dec-12 22:12
_Flaviu6-Dec-12 22:12 
QuestionRe: Image processing and converter Pin
Richard MacCutchan6-Dec-12 22:18
mveRichard MacCutchan6-Dec-12 22:18 
AnswerRe: Image processing and converter Pin
_Flaviu6-Dec-12 22:26
_Flaviu6-Dec-12 22:26 
GeneralRe: Image processing and converter Pin
Richard MacCutchan6-Dec-12 23:32
mveRichard MacCutchan6-Dec-12 23:32 
GeneralRe: Image processing and converter Pin
_Flaviu7-Dec-12 1:00
_Flaviu7-Dec-12 1:00 
GeneralRe: Image processing and converter Pin
Richard MacCutchan7-Dec-12 1:11
mveRichard MacCutchan7-Dec-12 1:11 
GeneralRe: Image processing and converter Pin
_Flaviu7-Dec-12 1:44
_Flaviu7-Dec-12 1:44 
GeneralRe: Image processing and converter Pin
Chris Losinger10-Dec-12 8:05
professionalChris Losinger10-Dec-12 8:05 
AnswerRe: Image processing and converter Pin
Joe Woodbury7-Dec-12 8:39
professionalJoe Woodbury7-Dec-12 8:39 
QuestionUniversal Patch Finder Native Plug-ins Pin
Hypercube Softwares6-Dec-12 20:41
Hypercube Softwares6-Dec-12 20:41 
AnswerRe: Universal Patch Finder Native Plug-ins Pin
Richard MacCutchan6-Dec-12 22:16
mveRichard MacCutchan6-Dec-12 22:16 
QuestionHow to detect window event : Log on, log off, standby... Pin
vunhutien6-Dec-12 16:27
vunhutien6-Dec-12 16:27 
AnswerRe: How to detect window event : Log on, log off, standby... Pin
Richard MacCutchan6-Dec-12 22:14
mveRichard MacCutchan6-Dec-12 22:14 
Question_ApplicationPtr definition in OLE program Pin
ForNow6-Dec-12 13:30
ForNow6-Dec-12 13:30 
AnswerRe: _ApplicationPtr definition in OLE program Pin
Peter_in_27806-Dec-12 15:18
professionalPeter_in_27806-Dec-12 15:18 

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.