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