Click here to Skip to main content
15,920,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Memory leak with CString Pin
Jochen Arndt12-Oct-13 22:31
professionalJochen Arndt12-Oct-13 22:31 
GeneralRe: Memory leak with CString Pin
Manoj Kumar Rai13-Oct-13 9:05
professionalManoj Kumar Rai13-Oct-13 9:05 
Thanks Jochen for your inputs.

1. I have used CriticalSection while accessing m_cstrLogLine but have omitted those additional lines to focus on actual business logic.

2. I agree that WideCharToMultiByte() could have been a better option to convert string but I have changed code to rule out any leak during conversion itself.

3. The CopyLogToFileByThread() is not modifying string and thats why its surprising to have memory leak from that function.

4. One more point i will like to mention here is thhat this application has been built for WinCE 6.0.

I am trying to replicate the same issue with a test application and if possible for XP.
Manoj
Never Gives up

QuestionRe: Memory leak with CString Pin
David Crow16-Oct-13 4:11
David Crow16-Oct-13 4:11 
QuestionI don't know how to do!? Pin
Suyeong12-Oct-13 17:06
Suyeong12-Oct-13 17:06 
AnswerRe: I don't know how to do!? Pin
Ron Beyer12-Oct-13 17:56
professionalRon Beyer12-Oct-13 17:56 
AnswerRe: I don't know how to do!? Pin
Captain Price14-Oct-13 1:40
professionalCaptain Price14-Oct-13 1:40 
Questionvisual studio 2008 QT project with c++ Pin
Mkhitar Sargsyan12-Oct-13 4:10
Mkhitar Sargsyan12-Oct-13 4:10 
AnswerRe: visual studio 2008 QT project with c++ Pin
Richard MacCutchan12-Oct-13 5:09
mveRichard MacCutchan12-Oct-13 5:09 
GeneralRe: visual studio 2008 QT project with c++ Pin
Mkhitar Sargsyan13-Oct-13 23:35
Mkhitar Sargsyan13-Oct-13 23:35 
GeneralRe: visual studio 2008 QT project with c++ Pin
Richard MacCutchan14-Oct-13 0:00
mveRichard MacCutchan14-Oct-13 0:00 
GeneralRe: visual studio 2008 QT project with c++ Pin
Mkhitar Sargsyan14-Oct-13 0:34
Mkhitar Sargsyan14-Oct-13 0:34 
GeneralRe: visual studio 2008 QT project with c++ Pin
Richard MacCutchan14-Oct-13 1:02
mveRichard MacCutchan14-Oct-13 1:02 
GeneralRe: visual studio 2008 QT project with c++ Pin
Mkhitar Sargsyan14-Oct-13 0:42
Mkhitar Sargsyan14-Oct-13 0:42 
GeneralRe: visual studio 2008 QT project with c++ Pin
Richard MacCutchan14-Oct-13 1:04
mveRichard MacCutchan14-Oct-13 1:04 
GeneralRe: visual studio 2008 QT project with c++ Pin
Mkhitar Sargsyan14-Oct-13 1:20
Mkhitar Sargsyan14-Oct-13 1:20 
GeneralRe: visual studio 2008 QT project with c++ Pin
Richard MacCutchan14-Oct-13 1:51
mveRichard MacCutchan14-Oct-13 1:51 
Questionbcmenu.cpp for XP and 7/8 Pin
DanYELL11-Oct-13 18:39
DanYELL11-Oct-13 18:39 
AnswerRe: bcmenu.cpp for XP and 7/8 Pin
Richard MacCutchan11-Oct-13 22:24
mveRichard MacCutchan11-Oct-13 22:24 
Questionwhat if thread terminated after the thread::joinable() test Pin
Wang Xin USTC11-Oct-13 3:01
Wang Xin USTC11-Oct-13 3:01 
AnswerRe: what if thread terminated after the thread::joinable() test Pin
pasztorpisti11-Oct-13 3:44
pasztorpisti11-Oct-13 3:44 
QuestionBEGIN_MESSAGE_MAP never called? Pin
bosfan11-Oct-13 0:29
bosfan11-Oct-13 0:29 
QuestionRe: BEGIN_MESSAGE_MAP never called? Pin
Richard MacCutchan11-Oct-13 1:27
mveRichard MacCutchan11-Oct-13 1:27 
AnswerRe: BEGIN_MESSAGE_MAP never called? Pin
bosfan11-Oct-13 2:20
bosfan11-Oct-13 2:20 
GeneralRe: BEGIN_MESSAGE_MAP never called? Pin
Richard MacCutchan11-Oct-13 3:14
mveRichard MacCutchan11-Oct-13 3:14 
AnswerRe: BEGIN_MESSAGE_MAP never called? Pin
bosfan11-Oct-13 3:16
bosfan11-Oct-13 3:16 

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.