Click here to Skip to main content
15,897,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to remove flicker effect? Pin
Hans Dietrich17-May-11 2:15
mentorHans Dietrich17-May-11 2:15 
Questionconvert a CString variable to unsigned long long Pin
VCProgrammer16-May-11 21:31
VCProgrammer16-May-11 21:31 
AnswerRe: convert a CString variable to unsigned long long Pin
Hans Dietrich16-May-11 21:52
mentorHans Dietrich16-May-11 21:52 
GeneralRe: convert a CString variable to unsigned long long Pin
Richard MacCutchan16-May-11 21:55
mveRichard MacCutchan16-May-11 21:55 
AnswerRe: convert a CString variable to unsigned long long Pin
Richard MacCutchan16-May-11 21:54
mveRichard MacCutchan16-May-11 21:54 
AnswerRe: convert a CString variable to unsigned long long Pin
Hans Dietrich16-May-11 22:24
mentorHans Dietrich16-May-11 22:24 
QuestionMemory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
Abhijit_Satpute16-May-11 18:34
Abhijit_Satpute16-May-11 18:34 
AnswerRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
Hans Dietrich16-May-11 22:20
mentorHans Dietrich16-May-11 22:20 
[The following assumes that you don't have a mismatched new/free somewhere in your code.]

The way this was explained to me, Windows uses a virtual memory concept to allocate/release in chunks of 'pages' 4096 bytes long. Small memory blocks will come from local heap and it is always in physical memory - this is why freeing memory is not "visible" in Task Manager. Large memory blocks will require additional pages to be allocated, and freeing that memory will be visible.

If you want to dig more deeply into this, there are several excellent articles on leak detection here on CodeProject.

You could also experiment by allocating a large block, waiting 10 seconds, then freeing the block while you are watching Task Manager.
Best wishes,
Hans


[Hans Dietrich Software]

GeneralRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
Abhijit_Satpute17-May-11 1:45
Abhijit_Satpute17-May-11 1:45 
AnswerRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
Hans Dietrich17-May-11 2:04
mentorHans Dietrich17-May-11 2:04 
GeneralRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
Abhijit_Satpute17-May-11 5:00
Abhijit_Satpute17-May-11 5:00 
QuestionRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
David Crow17-May-11 3:00
David Crow17-May-11 3:00 
AnswerRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
Abhijit_Satpute17-May-11 4:59
Abhijit_Satpute17-May-11 4:59 
GeneralRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
David Crow17-May-11 5:03
David Crow17-May-11 5:03 
GeneralRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
Abhijit_Satpute17-May-11 5:25
Abhijit_Satpute17-May-11 5:25 
QuestionRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
David Crow17-May-11 5:51
David Crow17-May-11 5:51 
AnswerRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
Abhijit_Satpute17-May-11 19:58
Abhijit_Satpute17-May-11 19:58 
QuestionStart application at specific time Pin
Pranit Kothari15-May-11 22:00
Pranit Kothari15-May-11 22:00 
AnswerRe: Start application at specific time Pin
Richard MacCutchan15-May-11 22:09
mveRichard MacCutchan15-May-11 22:09 
GeneralRe: Start application at specific time Pin
Pranit Kothari16-May-11 0:30
Pranit Kothari16-May-11 0:30 
GeneralRe: Start application at specific time Pin
Richard MacCutchan16-May-11 1:08
mveRichard MacCutchan16-May-11 1:08 
GeneralRe: Start application at specific time Pin
Pranit Kothari16-May-11 1:12
Pranit Kothari16-May-11 1:12 
GeneralRe: Start application at specific time Pin
ShilpiP16-May-11 1:46
ShilpiP16-May-11 1:46 
GeneralRe: Start application at specific time Pin
Pranit Kothari16-May-11 2:02
Pranit Kothari16-May-11 2:02 
GeneralRe: Start application at specific time Pin
ShilpiP16-May-11 2:11
ShilpiP16-May-11 2:11 

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.