Click here to Skip to main content
15,890,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Task Mgr message Pin
Stephen Hewitt9-Jun-10 14:14
Stephen Hewitt9-Jun-10 14:14 
Questionmemory leak Pin
zon_cpp8-Jun-10 23:04
zon_cpp8-Jun-10 23:04 
AnswerRe: memory leak Pin
rp_suman8-Jun-10 23:26
rp_suman8-Jun-10 23:26 
AnswerRe: memory leak Pin
Niklas L8-Jun-10 23:29
Niklas L8-Jun-10 23:29 
GeneralRe: memory leak Pin
zon_cpp9-Jun-10 0:49
zon_cpp9-Jun-10 0:49 
GeneralRe: memory leak Pin
Niklas L9-Jun-10 0:58
Niklas L9-Jun-10 0:58 
GeneralRe: memory leak Pin
zon_cpp9-Jun-10 1:15
zon_cpp9-Jun-10 1:15 
GeneralRe: memory leak Pin
Niklas L9-Jun-10 1:26
Niklas L9-Jun-10 1:26 
Ok, so let's assume the leak really is from within the loop.

Do you maybe have any exception / exception handling where the new/delete pair breaks?
like:
try {
    int *p = new int;
    if (bNowAndThen)
        throw "Exception";
    delete p;
}
catch (const char* e)
{
}


If not, you need to start inspecting the functions you call from the loop and see if any of them is causing this. Do this by removing as much as you can, recompile and run. If it looks ok try adding a few calls until the error occurs again.

GeneralRe: memory leak Pin
zon_cpp9-Jun-10 1:52
zon_cpp9-Jun-10 1:52 
AnswerRe: memory leak PinPopular
Aescleal8-Jun-10 23:30
Aescleal8-Jun-10 23:30 
GeneralRe: memory leak Pin
Niklas L9-Jun-10 0:50
Niklas L9-Jun-10 0:50 
GeneralRe: memory leak [modified] Pin
Aescleal9-Jun-10 1:07
Aescleal9-Jun-10 1:07 
GeneralRe: memory leak OT Pin
Richard MacCutchan9-Jun-10 2:32
mveRichard MacCutchan9-Jun-10 2:32 
Questionhandle of parent window containing windowless content Pin
rakesh54548-Jun-10 21:20
rakesh54548-Jun-10 21:20 
Questiontruncating file size using _chsize in C Pin
Nikesh Jagtap8-Jun-10 21:12
Nikesh Jagtap8-Jun-10 21:12 
AnswerRe: truncating file size using _chsize in C PinPopular
Cedric Moonen8-Jun-10 21:54
Cedric Moonen8-Jun-10 21:54 
QuestionTruncating size of file using _chsize() Pin
Nikesh Jagtap8-Jun-10 20:40
Nikesh Jagtap8-Jun-10 20:40 
AnswerRe: Truncating size of file using _chsize() Pin
Cedric Moonen8-Jun-10 20:41
Cedric Moonen8-Jun-10 20:41 
AnswerRe: Truncating size of file using _chsize() Pin
«_Superman_»8-Jun-10 20:48
professional«_Superman_»8-Jun-10 20:48 
QuestionReadFile function returns 1 but number of bytes read is returning 0 Pin
learningvisualc8-Jun-10 20:35
learningvisualc8-Jun-10 20:35 
AnswerRe: ReadFile function returns 1 but number of bytes read is returning 0 Pin
Cedric Moonen8-Jun-10 20:40
Cedric Moonen8-Jun-10 20:40 
QuestionTab control Pin
john56328-Jun-10 19:53
john56328-Jun-10 19:53 
AnswerRe: Tab control Pin
Niklas L8-Jun-10 23:16
Niklas L8-Jun-10 23:16 
QuestionReg Excel Automation in SDI Pin
hellogany8-Jun-10 19:22
hellogany8-Jun-10 19:22 
AnswerRe: Reg Excel Automation in SDI Pin
«_Superman_»8-Jun-10 19:28
professional«_Superman_»8-Jun-10 19:28 

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.