Click here to Skip to main content
       

C / C++ / MFC

 
AnswerRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? PinmemberPecuniousPete9-Dec-12 20:23 
Questionhow to find out the codes who eat up my memory? PinmemberFalconapollo7-Dec-12 2:32 
AnswerRe: how to find out the codes who eat up my memory? PinmvpRichard MacCutchan7-Dec-12 2:54 
QuestionRe: how to find out the codes who eat up my memory? PinmemberDavidCrow7-Dec-12 2:55 
AnswerRe: how to find out the codes who eat up my memory? PinmemberFalconapollo7-Dec-12 3:11 
QuestionRe: how to find out the codes who eat up my memory? PinmemberDavidCrow7-Dec-12 3:25 
AnswerRe: how to find out the codes who eat up my memory? PinmemberFalconapollo7-Dec-12 3:28 
AnswerRe: how to find out the codes who eat up my memory? PinmemberJoe 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? Pinmembervr9999999998-Dec-12 1:25 
AnswerRe: how to find out the codes who eat up my memory? PinmemberPecuniousPete11-Dec-12 20:42 
QuestionImage processing and converter PinmemberFlaviu26-Dec-12 22:12 
QuestionRe: Image processing and converter PinmvpRichard MacCutchan6-Dec-12 22:18 
AnswerRe: Image processing and converter PinmemberFlaviu26-Dec-12 22:26 
GeneralRe: Image processing and converter PinmvpRichard MacCutchan6-Dec-12 23:32 
GeneralRe: Image processing and converter PinmemberFlaviu27-Dec-12 1:00 
GeneralRe: Image processing and converter PinmvpRichard MacCutchan7-Dec-12 1:11 
GeneralRe: Image processing and converter PinmemberFlaviu27-Dec-12 1:44 
GeneralRe: Image processing and converter PinmemberChris Losinger10-Dec-12 8:05 
AnswerRe: Image processing and converter PinmemberJoe Woodbury7-Dec-12 8:39 
QuestionUniversal Patch Finder Native Plug-ins Pinmemberdroopy66-Dec-12 20:41 
AnswerRe: Universal Patch Finder Native Plug-ins PinmvpRichard MacCutchan6-Dec-12 22:16 
QuestionHow to detect window event : Log on, log off, standby... Pinmembervunhutien6-Dec-12 16:27 
AnswerRe: How to detect window event : Log on, log off, standby... PinmvpRichard MacCutchan6-Dec-12 22:14 
Question_ApplicationPtr definition in OLE program PinmemberForNow6-Dec-12 13:30 
AnswerRe: _ApplicationPtr definition in OLE program PinmemberPeter_in_27806-Dec-12 15:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web03 | 2.8.140827.1 | Last Updated 30 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid