Click here to Skip to main content
12,635,671 members (25,101 online)

C / C++ / MFC

 
AnswerRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
PecuniousPete9-Dec-12 21:23
memberPecuniousPete9-Dec-12 21:23 
Questionhow to find out the codes who eat up my memory? Pin
Falconapollo7-Dec-12 3:32
memberFalconapollo7-Dec-12 3:32 
AnswerRe: how to find out the codes who eat up my memory? Pin
Richard MacCutchan7-Dec-12 3:54
mvpRichard MacCutchan7-Dec-12 3:54 
QuestionRe: how to find out the codes who eat up my memory? Pin
DavidCrow7-Dec-12 3:55
memberDavidCrow7-Dec-12 3:55 
AnswerRe: how to find out the codes who eat up my memory? Pin
Falconapollo7-Dec-12 4:11
memberFalconapollo7-Dec-12 4:11 
QuestionRe: how to find out the codes who eat up my memory? Pin
DavidCrow7-Dec-12 4:25
memberDavidCrow7-Dec-12 4:25 
AnswerRe: how to find out the codes who eat up my memory? Pin
Falconapollo7-Dec-12 4:28
memberFalconapollo7-Dec-12 4:28 
AnswerRe: how to find out the codes who eat up my memory? Pin
Joe Woodbury7-Dec-12 9:30
memberJoe Woodbury7-Dec-12 9: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 2:25
membervr9999999998-Dec-12 2:25 
AnswerRe: how to find out the codes who eat up my memory? Pin
PecuniousPete11-Dec-12 21:42
memberPecuniousPete11-Dec-12 21:42 
QuestionImage processing and converter Pin
Flaviu26-Dec-12 23:12
memberFlaviu26-Dec-12 23:12 
QuestionRe: Image processing and converter Pin
Richard MacCutchan6-Dec-12 23:18
mvpRichard MacCutchan6-Dec-12 23:18 
AnswerRe: Image processing and converter Pin
Flaviu26-Dec-12 23:26
memberFlaviu26-Dec-12 23:26 
GeneralRe: Image processing and converter Pin
Richard MacCutchan7-Dec-12 0:32
mvpRichard MacCutchan7-Dec-12 0:32 
GeneralRe: Image processing and converter Pin
Flaviu27-Dec-12 2:00
memberFlaviu27-Dec-12 2:00 
GeneralRe: Image processing and converter Pin
Richard MacCutchan7-Dec-12 2:11
mvpRichard MacCutchan7-Dec-12 2:11 
GeneralRe: Image processing and converter Pin
Flaviu27-Dec-12 2:44
memberFlaviu27-Dec-12 2:44 
GeneralRe: Image processing and converter Pin
Chris Losinger10-Dec-12 9:05
memberChris Losinger10-Dec-12 9:05 
AnswerRe: Image processing and converter Pin
Joe Woodbury7-Dec-12 9:39
memberJoe Woodbury7-Dec-12 9:39 
QuestionUniversal Patch Finder Native Plug-ins Pin
droopy66-Dec-12 21:41
memberdroopy66-Dec-12 21:41 
AnswerRe: Universal Patch Finder Native Plug-ins Pin
Richard MacCutchan6-Dec-12 23:16
mvpRichard MacCutchan6-Dec-12 23:16 
QuestionHow to detect window event : Log on, log off, standby... Pin
vunhutien6-Dec-12 17:27
membervunhutien6-Dec-12 17:27 
AnswerRe: How to detect window event : Log on, log off, standby... Pin
Richard MacCutchan6-Dec-12 23:14
mvpRichard MacCutchan6-Dec-12 23:14 
Question_ApplicationPtr definition in OLE program Pin
ForNow6-Dec-12 14:30
memberForNow6-Dec-12 14:30 
AnswerRe: _ApplicationPtr definition in OLE program Pin
Peter_in_27806-Dec-12 16:18
memberPeter_in_27806-Dec-12 16: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.


Advertise | Privacy | Mobile
Web02 | 2.8.161208.2 | Last Updated 11 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid