Click here to Skip to main content
15,868,071 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Strange memory leak Pin
Sivaraman Dhamodharan31-Oct-12 22:45
Sivaraman Dhamodharan31-Oct-12 22:45 
GeneralRe: Strange memory leak Pin
miniman0631-Oct-12 23:10
miniman0631-Oct-12 23:10 
AnswerRe: Strange memory leak Pin
Rolf Kristensen31-Oct-12 22:47
Rolf Kristensen31-Oct-12 22:47 
GeneralRe: Strange memory leak Pin
miniman0631-Oct-12 23:11
miniman0631-Oct-12 23:11 
AnswerRe: Strange memory leak Pin
Santhosh G_31-Oct-12 23:22
Santhosh G_31-Oct-12 23:22 
GeneralRe: Strange memory leak Pin
miniman0631-Oct-12 23:31
miniman0631-Oct-12 23:31 
AnswerRe: Strange memory leak Pin
Jochen Arndt31-Oct-12 23:35
professionalJochen Arndt31-Oct-12 23:35 
GeneralRe: Strange memory leak Pin
miniman061-Nov-12 0:09
miniman061-Nov-12 0:09 
that pretty much solved me the problem
something to note
delete still calls the destructor.
so the auto delete code that you provided will cause an exception.

C#
Process::~Process()
{
    if(m_bDeallocated)
       return;

    delete m_proc;
    delete [] m_filename;
    m_bDeallocated = true;
    if (m_bAutoDelete)
        delete this; //will call this destructor again and cause trouble

}

GeneralRe: Strange memory leak Pin
Jochen Arndt1-Nov-12 0:29
professionalJochen Arndt1-Nov-12 0:29 
AnswerRe: Strange memory leak Pin
BCN-1631-Nov-12 16:01
BCN-1631-Nov-12 16:01 
Questionabout accessing PDF file, compile error. Pin
BCN-16331-Oct-12 15:18
BCN-16331-Oct-12 15:18 
AnswerRe: about accessing PDF file, compile error. Pin
Richard MacCutchan31-Oct-12 23:41
mveRichard MacCutchan31-Oct-12 23:41 
GeneralRe: about accessing PDF file, compile error. Pin
BCN-1631-Nov-12 15:56
BCN-1631-Nov-12 15:56 
GeneralRe: about accessing PDF file, compile error. Pin
Richard MacCutchan1-Nov-12 22:35
mveRichard MacCutchan1-Nov-12 22:35 
GeneralRe: about accessing PDF file, compile error. Pin
BCN-1634-Nov-12 13:39
BCN-1634-Nov-12 13:39 
QuestionHow correctly to check up availability of a XP theme? Pin
Eugene Pustovoyt31-Oct-12 2:10
Eugene Pustovoyt31-Oct-12 2:10 
AnswerRe: How correctly to check up availability of a XP theme? Pin
Jochen Arndt31-Oct-12 2:54
professionalJochen Arndt31-Oct-12 2:54 
GeneralRe: How correctly to check up availability of a XP theme? Pin
Eugene Pustovoyt31-Oct-12 4:12
Eugene Pustovoyt31-Oct-12 4:12 
QuestionWhat is the difference between following declarations ? Pin
PrafullaVedante30-Oct-12 22:52
PrafullaVedante30-Oct-12 22:52 
AnswerRe: What is the difference between following declarations ? Pin
Richard MacCutchan30-Oct-12 23:07
mveRichard MacCutchan30-Oct-12 23:07 
AnswerRe: What is the difference between following declarations ? Pin
Orjan Westin30-Oct-12 23:37
professionalOrjan Westin30-Oct-12 23:37 
GeneralRe: What is the difference between following declarations ? Pin
Stefan_Lang7-Nov-12 2:49
Stefan_Lang7-Nov-12 2:49 
GeneralRe: What is the difference between following declarations ? Pin
Orjan Westin8-Nov-12 9:07
professionalOrjan Westin8-Nov-12 9:07 
QuestionWrite a tiff file to disk Pin
Marcio Kugler Rodrigues30-Oct-12 7:50
Marcio Kugler Rodrigues30-Oct-12 7:50 
AnswerRe: Write a tiff file to disk Pin
Richard MacCutchan30-Oct-12 8:37
mveRichard MacCutchan30-Oct-12 8:37 

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.