Click here to Skip to main content
15,905,914 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: free is needed when app will exit? Pin
Stuart Dootson4-Jun-09 7:09
professionalStuart Dootson4-Jun-09 7:09 
norish wrote:
But nowadays, in win32 system, malloc is implemented by HeapAlloc and do not need call at program exiting anymore, because system frees its heap safely at process died.


Strictly you are correct - Windows releases a processes resources when the process terminates. However, it's good practise to release resources explicitly, just in case the code gets reused somewhere that it matters. Use smart pointers/resource handles and it becomes easy enough.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: free is needed when app will exit? Pin
norish4-Jun-09 7:49
norish4-Jun-09 7:49 
QuestionOnInitDialog() is not called? Pin
transoft4-Jun-09 6:34
transoft4-Jun-09 6:34 
GeneralRe: OnInitDialog() is not called? Pin
norish4-Jun-09 7:07
norish4-Jun-09 7:07 
GeneralRe: OnInitDialog() is not called? Pin
transoft4-Jun-09 7:38
transoft4-Jun-09 7:38 
GeneralRe: OnInitDialog() is not called? Pin
norish4-Jun-09 8:01
norish4-Jun-09 8:01 
AnswerRe: OnInitDialog() is not called? Pin
Stuart Dootson4-Jun-09 7:10
professionalStuart Dootson4-Jun-09 7:10 
GeneralRe: OnInitDialog() is not called? Pin
transoft4-Jun-09 7:39
transoft4-Jun-09 7:39 
GeneralRe: OnInitDialog() is not called? Pin
ChosenOne5-Jun-09 9:44
ChosenOne5-Jun-09 9:44 
QuestionRe: OnInitDialog() is not called? Pin
David Crow4-Jun-09 10:23
David Crow4-Jun-09 10:23 
AnswerRe: OnInitDialog() is not called? Pin
Cristian Amarie4-Jun-09 18:31
Cristian Amarie4-Jun-09 18:31 
QuestionHow to show a dialog box when some background processing started Pin
pandit844-Jun-09 5:55
pandit844-Jun-09 5:55 
AnswerRe: How to show a dialog box when some background processing started Pin
Code-o-mat4-Jun-09 6:02
Code-o-mat4-Jun-09 6:02 
QuestionCreate Process in background Pin
krishnakumartm4-Jun-09 5:25
krishnakumartm4-Jun-09 5:25 
AnswerRe: Create Process in background Pin
Uwe Keim4-Jun-09 5:29
sitebuilderUwe Keim4-Jun-09 5:29 
GeneralRe: Create Process in background Pin
krishnakumartm4-Jun-09 5:42
krishnakumartm4-Jun-09 5:42 
GeneralRe: Create Process in background Pin
krishnakumartm4-Jun-09 5:57
krishnakumartm4-Jun-09 5:57 
GeneralRe: Create Process in background Pin
norish4-Jun-09 6:02
norish4-Jun-09 6:02 
GeneralRe: Create Process in background Pin
krishnakumartm4-Jun-09 6:13
krishnakumartm4-Jun-09 6:13 
QuestionHow to hook CBN_DROPDOWN and CBN_CLOSEUP ? Pin
alikalik4-Jun-09 4:59
alikalik4-Jun-09 4:59 
AnswerRe: How to hook CBN_DROPDOWN and CBN_CLOSEUP ? Pin
norish4-Jun-09 5:10
norish4-Jun-09 5:10 
GeneralRe: How to hook CBN_DROPDOWN and CBN_CLOSEUP ? Pin
alikalik4-Jun-09 6:05
alikalik4-Jun-09 6:05 
QuestionRe: How to hook CBN_DROPDOWN and CBN_CLOSEUP ? Pin
norish4-Jun-09 6:50
norish4-Jun-09 6:50 
QuestionRe: How to hook CBN_DROPDOWN and CBN_CLOSEUP ? Pin
David Crow4-Jun-09 5:52
David Crow4-Jun-09 5:52 
AnswerRe: How to hook CBN_DROPDOWN and CBN_CLOSEUP ? Pin
alikalik4-Jun-09 5:57
alikalik4-Jun-09 5:57 

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.