Click here to Skip to main content
15,903,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFrame menu enabled! Pin
LiYS2-Nov-05 16:47
LiYS2-Nov-05 16:47 
QuestionShow WMF Pin
Nishad S2-Nov-05 16:47
Nishad S2-Nov-05 16:47 
QuestionHow to set a special tooltips of a slider control? Pin
CoolStarLee2-Nov-05 14:50
CoolStarLee2-Nov-05 14:50 
QuestionOnPaintBackground() isn't getting called Pin
OlliesDad2-Nov-05 12:22
OlliesDad2-Nov-05 12:22 
AnswerRe: OnPaintBackground() isn't getting called Pin
OlliesDad2-Nov-05 13:22
OlliesDad2-Nov-05 13:22 
QuestionXML Docs supported for C++ in 2003 or 2005? Pin
Todd Smith2-Nov-05 11:53
Todd Smith2-Nov-05 11:53 
QuestionLoad testing & performance monitoring Pin
Todd Smith2-Nov-05 11:33
Todd Smith2-Nov-05 11:33 
Questionthe memory leak Pin
valerie992-Nov-05 11:22
valerie992-Nov-05 11:22 
good afternoon, could anyone see where is the leak from? thank you! I've checked the momory allocation, the leak is happening around here:

strcpy( FileName, BinPath );
strcat( FileName, "CALLSM" );
strcat( FileName, Cycle);
strcat( FileName, ".BIN" );
if ( _access ( FileName, 0 ) != 0 )
{
sprintf( ErrorText, "File does not exist -> %s", FileName );
Message( ErrorText, VD_ERROR );
return 0;
}
m_information_line = "Loading CALLSUM Binary File.";
PostUpdate();
CallSumBin = new CALLSUM_BIN( FileName );
if ( !CallSumBin )
{
Message( "Unable to allocate CallSumBin binfile.", VD_ERROR );
return 0;
}

here is the delete in closedown() function:
if ( CallSumBin )
{
if ( !IsStop() ) {
strcpy( FileName, BinPath );
strcat( FileName, "CALLSM" );
strcat( FileName, Cycle);
strcat( FileName, ".BIN" );
m_information_line = "Saving updated CALLSM binary file";
PostUpdate();
CallSumBin->Save( FileName );
fprintf( Report,"Updated CALLSM binary file saved.\r\n" );
}
delete CallSumBin;
}
m_information_line = " ";
PostUpdate();


-- modified at 17:23 Wednesday 2nd November, 2005
AnswerRe: the memory leak Pin
Christian Graus2-Nov-05 11:53
protectorChristian Graus2-Nov-05 11:53 
AnswerRe: the memory leak Pin
kakan2-Nov-05 18:44
professionalkakan2-Nov-05 18:44 
AnswerRe: the memory leak Pin
toxcct2-Nov-05 21:17
toxcct2-Nov-05 21:17 
AnswerRe: the memory leak Pin
krmed3-Nov-05 2:54
krmed3-Nov-05 2:54 
AnswerRe: the memory leak Pin
Tim Smith3-Nov-05 3:55
Tim Smith3-Nov-05 3:55 
QuestionAscW Pin
samkook2-Nov-05 10:18
samkook2-Nov-05 10:18 
AnswerRe: AscW Pin
toxcct2-Nov-05 21:14
toxcct2-Nov-05 21:14 
GeneralRe: AscW Pin
samkook3-Nov-05 8:28
samkook3-Nov-05 8:28 
Questionxml in tree view control Pin
gr8coaster3292-Nov-05 10:05
gr8coaster3292-Nov-05 10:05 
AnswerRe: xml in tree view control Pin
AskQuestion2-Nov-05 10:28
AskQuestion2-Nov-05 10:28 
QuestionRe: xml in tree view control Pin
gr8coaster3292-Nov-05 12:41
gr8coaster3292-Nov-05 12:41 
AnswerRe: xml in tree view control Pin
AskQuestion3-Nov-05 0:20
AskQuestion3-Nov-05 0:20 
QuestionAnyone know a good tutorial on VC++ 6? Pin
Lord Kixdemp2-Nov-05 8:20
Lord Kixdemp2-Nov-05 8:20 
AnswerRe: Anyone know a good tutorial on VC++ 6? Pin
Ravi Bhavnani2-Nov-05 8:38
professionalRavi Bhavnani2-Nov-05 8:38 
GeneralRe: Anyone know a good tutorial on VC++ 6? Pin
Lord Kixdemp2-Nov-05 9:06
Lord Kixdemp2-Nov-05 9:06 
GeneralRe: Anyone know a good tutorial on VC++ 6? Pin
Kevin McFarlane2-Nov-05 9:24
Kevin McFarlane2-Nov-05 9:24 
GeneralRe: Anyone know a good tutorial on VC++ 6? Pin
Ravi Bhavnani2-Nov-05 9:46
professionalRavi Bhavnani2-Nov-05 9:46 

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.