Click here to Skip to main content
15,899,314 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Memory leak during termination of thread Pin
heliboy6-Apr-11 0:16
heliboy6-Apr-11 0:16 
First, do not use TerminateThread() to forcely terminate thread. The best way is let the thread terminate itself. If you want to terminate thread while thread is running, set a flag to notify the thread and let it self-terminate. Read the book "Multithreading Applications in Win32", a good book you need to read before you use multithread.

Second, you need to check your code to see where you dynamic created variable but not delete it upon thread exit. You need to check this yourself, no other people can help you.
GeneralRe: Memory leak during termination of thread Pin
shashankacharya6-Apr-11 0:24
shashankacharya6-Apr-11 0:24 
GeneralRe: Memory leak during termination of thread Pin
Albert Holguin6-Apr-11 17:19
professionalAlbert Holguin6-Apr-11 17:19 
GeneralRe: Memory leak during termination of thread Pin
shashankacharya6-Apr-11 22:16
shashankacharya6-Apr-11 22:16 
QuestionConflicting Resource IDs Pin
softwaremonkey5-Apr-11 20:32
softwaremonkey5-Apr-11 20:32 
AnswerRe: Conflicting Resource IDs Pin
Hans Dietrich5-Apr-11 22:24
mentorHans Dietrich5-Apr-11 22:24 
GeneralRe: Conflicting Resource IDs Pin
softwaremonkey6-Apr-11 0:33
softwaremonkey6-Apr-11 0:33 
GeneralRe: Conflicting Resource IDs Pin
softwaremonkey6-Apr-11 10:17
softwaremonkey6-Apr-11 10:17 
AnswerRe: Conflicting Resource IDs Pin
Hans Dietrich6-Apr-11 16:13
mentorHans Dietrich6-Apr-11 16:13 
Questionfabs with SSE Pin
9ine5-Apr-11 2:19
9ine5-Apr-11 2:19 
AnswerRe: fabs with SSE Pin
Chris Losinger5-Apr-11 2:33
professionalChris Losinger5-Apr-11 2:33 
AnswerRe: fabs with SSE Pin
Ozer Karaagac5-Apr-11 16:35
professionalOzer Karaagac5-Apr-11 16:35 
QuestionUi Problem in Vista and above Pin
rahul.kulshreshtha5-Apr-11 1:34
rahul.kulshreshtha5-Apr-11 1:34 
AnswerRe: Ui Problem in Vista and above Pin
Hans Dietrich5-Apr-11 2:16
mentorHans Dietrich5-Apr-11 2:16 
GeneralRe: Ui Problem in Vista and above Pin
rahul.kulshreshtha5-Apr-11 5:45
rahul.kulshreshtha5-Apr-11 5:45 
AnswerRe: Ui Problem in Vista and above Pin
Charles Oppermann5-Apr-11 5:04
Charles Oppermann5-Apr-11 5:04 
GeneralRe: Ui Problem in Vista and above Pin
rahul.kulshreshtha5-Apr-11 5:47
rahul.kulshreshtha5-Apr-11 5:47 
QuestionMessage loop Query Pin
pandit845-Apr-11 1:15
pandit845-Apr-11 1:15 
AnswerRe: Message loop Query Pin
«_Superman_»5-Apr-11 1:51
professional«_Superman_»5-Apr-11 1:51 
QuestionString Combination Pin
john56324-Apr-11 23:53
john56324-Apr-11 23:53 
AnswerRe: String Combination Pin
Rajesh R Subramanian4-Apr-11 23:58
professionalRajesh R Subramanian4-Apr-11 23:58 
JokeRe: String Combination Pin
_AnsHUMAN_ 5-Apr-11 0:00
_AnsHUMAN_ 5-Apr-11 0:00 
GeneralRe: String Combination Pin
Rajesh R Subramanian5-Apr-11 5:48
professionalRajesh R Subramanian5-Apr-11 5:48 
GeneralRe: String Combination Pin
john56325-Apr-11 0:38
john56325-Apr-11 0:38 
GeneralRe: String Combination Pin
Rajesh R Subramanian5-Apr-11 0:57
professionalRajesh R Subramanian5-Apr-11 0: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.