Search the web
Sign In
New User? Sign Up
mpatrol · mpatrol library discussion group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Memory leak in streams   Message List  
Reply | Forward Message #955 of 1198 |

Hi,

I've started using mpatrol on my Fedora linux and looks very
interesting. I am trying all the test programs on my own as well as
in the test suites. I've some observations on detecting the memory
leaks when we use streams objects.Like

#include <iostream.h>
#include <strstream>

using namespace std;

#include "mpatrol.h"

int
main( )
{
ostrstream str;
str<<"Hello world!!!"<<endl;
str<<ends;
cerr<<str.str(); //This is a leak

return 0;
}

When I run the program, the mpatrol.log doesn't show the memory leak
at the place where I have given a comment as leak. How to check this leak.

One more question, how to test memory leaks on the existing feature
which runs continuosly....since the log file shall be generated only
at the exit point of the main program...we have program which runs
continuosly...never exit unless otherwise if we kill with signal.

Can someone guide how to solve these problems.

Thankx in advance.

Shiva










Thu Mar 24, 2005 5:49 pm

shiva_kumars
Offline Offline
Send Email Send Email

Forward
Message #955 of 1198 |
Expand Messages Author Sort by Date

Hi, I've started using mpatrol on my Fedora linux and looks very interesting. I am trying all the test programs on my own as well as in the test suites. I've...
Sivakumar
shiva_kumars
Offline Send Email
Mar 24, 2005
5:50 pm

Hi, The first problem got resolved, initially the env variables was not set. After going throu' the doc I found the info( The document is realluy useful!!!!!!...
Sivakumar
shiva_kumars
Offline Send Email
Mar 26, 2005
5:20 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help