Click here to Skip to main content
15,921,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
Mark Salsbery16-Jul-07 8:10
Mark Salsbery16-Jul-07 8:10 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
xcavin16-Jul-07 8:21
xcavin16-Jul-07 8:21 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
Mark Salsbery16-Jul-07 8:30
Mark Salsbery16-Jul-07 8:30 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
led mike16-Jul-07 10:46
led mike16-Jul-07 10:46 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
xcavin16-Jul-07 11:00
xcavin16-Jul-07 11:00 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
Stephen Hewitt16-Jul-07 14:06
Stephen Hewitt16-Jul-07 14:06 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
Hamid_RT25-Jul-07 7:48
Hamid_RT25-Jul-07 7:48 
AnswerRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
Mike Dimmick16-Jul-07 11:37
Mike Dimmick16-Jul-07 11:37 
Quite frankly the only reason to call DeleteCriticalSection is if you're containing a critical section within some dynamically allocated object. In which case, the code that deletes that object should delete the critical section.

At process exit time, why waste the time to free the critical section? Windows is only going to throw away the whole address space anyway. Indeed, why free the contents of the heap?

All DeleteCriticalSection really does is close the handle to the event object that was allocated if a thread ever had to block on entering the critical section. Windows closes handles that were still open when a process exited.

Stability. What an interesting concept. -- Chris Maunder

GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
xcavin16-Jul-07 11:50
xcavin16-Jul-07 11:50 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
Stephen Hewitt16-Jul-07 14:21
Stephen Hewitt16-Jul-07 14:21 
QuestionMonday morning mapping (CDC::SetMapMode) question. Pin
Maximilien16-Jul-07 5:09
Maximilien16-Jul-07 5:09 
AnswerRe: Monday morning mapping (CDC::SetMapMode) question. Pin
bob1697216-Jul-07 6:20
bob1697216-Jul-07 6:20 
QuestionWindowProc() precision Pin
rp_suman16-Jul-07 5:08
rp_suman16-Jul-07 5:08 
QuestionRe: WindowProc() precision Pin
Mark Salsbery16-Jul-07 5:22
Mark Salsbery16-Jul-07 5:22 
AnswerRe: WindowProc() precision Pin
rp_suman16-Jul-07 21:32
rp_suman16-Jul-07 21:32 
GeneralRe: WindowProc() precision Pin
Mark Salsbery17-Jul-07 5:28
Mark Salsbery17-Jul-07 5:28 
GeneralRe: WindowProc() precision Pin
rp_suman17-Jul-07 19:53
rp_suman17-Jul-07 19:53 
GeneralRe: WindowProc() precision Pin
rp_suman17-Jul-07 22:01
rp_suman17-Jul-07 22:01 
GeneralRe: WindowProc() precision Pin
Mark Salsbery18-Jul-07 5:47
Mark Salsbery18-Jul-07 5:47 
QuestionListbox multi select problem [modified] Pin
pirat316-Jul-07 4:53
pirat316-Jul-07 4:53 
Question(ActiveX) Control in VC++6 as collection of Controls? Pin
Andy Rama16-Jul-07 4:46
Andy Rama16-Jul-07 4:46 
QuestionSetting Dialog Control Focus Pin
MRCres16-Jul-07 4:25
MRCres16-Jul-07 4:25 
AnswerDouble posting Pin
leckey16-Jul-07 4:30
leckey16-Jul-07 4:30 
AnswerRe: Setting Dialog Control Focus Pin
Stephen Hewitt16-Jul-07 14:27
Stephen Hewitt16-Jul-07 14:27 
QuestionSetting Dialog Control Focus Pin
MRCres16-Jul-07 4:21
MRCres16-Jul-07 4:21 

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.