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...
Want to share photos of your group with the world? Add a group photo to Flickr.

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 #956 of 1198 |
Re: Memory leak in streams


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!!!!!! thanks for it).

I need to try the second problem...like to know the usage of mpatrol
on dedicated process. The program contains more than 25 source files
(.cc) apart from from include files. I need some informatin on using
the "mpatrol.h" in this program.

Is it enough to include the "mpatrol.h" in the main function file...or
do I need to use in all source files?

How do I test the executable which runs continously on main thread
without exiting???

Your information on this queries shall real helpful in using the
mpatrol tool.

I'm using Sun Solaris 8 SPARC4u....

I don't have any compilation/linking issues so far .

Thanks in advance

Sivakumar


--- In mpatrol@yahoogroups.com, "Sivakumar" <shiva_kumars@y...> wrote:
>
> 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






Sat Mar 26, 2005 5:19 pm

shiva_kumars
Offline Offline
Send Email Send Email

Forward
Message #956 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