C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Memory Leak Detection

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Winbatch
Guest





PostPosted: Wed Feb 23, 2005 4:51 am    Post subject: Memory Leak Detection Reply with quote



Is there a free or shareware tool to detect memory leaks in C++ programs?
I've done a variety of google searches but either came up with commercial
products or ones I could not get to detect blatantly leaking code.


Back to top
rajkumar@hotmail.com
Guest





PostPosted: Wed Feb 23, 2005 5:13 am    Post subject: Re: Memory Leak Detection Reply with quote



Depends on OS

for linux you can try

http://sourceforge.net/projects/valgrind/

Back to top
rajkumar@hotmail.com
Guest





PostPosted: Wed Feb 23, 2005 5:13 am    Post subject: Re: Memory Leak Detection Reply with quote



Depends on OS

for linux you can try

http://sourceforge.net/projects/valgrind/

Back to top
Winbatch
Guest





PostPosted: Wed Feb 23, 2005 5:22 am    Post subject: Re: Memory Leak Detection Reply with quote

For Sun Solaris.
<rajkumar (AT) hotmail (DOT) com> wrote

Quote:
Depends on OS

for linux you can try

http://sourceforge.net/projects/valgrind/




Back to top
Markus Elfring
Guest





PostPosted: Wed Feb 23, 2005 8:00 pm    Post subject: Re: Memory Leak Detection Reply with quote

Quote:
Is there a free or shareware tool to detect memory leaks in C++ programs?

Is a software that fits to your needs listed in this article?
http://en.wikipedia.org/wiki/Memory_debugger

Regards,
Markus



Back to top
Winbatch
Guest





PostPosted: Thu Feb 24, 2005 1:11 am    Post subject: Re: Memory Leak Detection Reply with quote

These appear to be either for C ( to detect malloc) or java , or bad
links...
"Markus Elfring" <Markus.Elfring (AT) web (DOT) de> wrote

Quote:
Is there a free or shareware tool to detect memory leaks in C++ programs?

Is a software that fits to your needs listed in this article?
http://en.wikipedia.org/wiki/Memory_debugger

Regards,
Markus





Back to top
E. Mark Ping
Guest





PostPosted: Thu Feb 24, 2005 1:33 am    Post subject: Re: Memory Leak Detection Reply with quote

In article <DZTSd.11318$534.1031 (AT) twister (DOT) nyc.rr.com>,
Winbatch <winbatch (AT) techie (DOT) com> wrote:
Quote:
Is there a free or shareware tool to detect memory leaks in C++ programs?
I've done a variety of google searches but either came up with commercial
products or ones I could not get to detect blatantly leaking code.

The Boehm Collector is free, and can be used to detect leaks.
http://www.hpl.hp.com/personal/Hans_Boehm/gc/
--
Mark Ping
[email]emarkp (AT) soda (DOT) CSUA.Berkeley.EDU[/email]

Back to top
Winbatch
Guest





PostPosted: Thu Feb 24, 2005 1:47 am    Post subject: Re: Memory Leak Detection Reply with quote

This also appears to be C (malloc/free) related based on this:

Using the Garbage Collector as Leak Detector
The garbage collector may be used as a leak detector. In this case, the
primary function of the collector is to report objects that were allocated
(typically with GC_MALLOC), not deallocated (normally with GC_FREE), but are
no longer accessible


"E. Mark Ping" <emarkp (AT) soda (DOT) csua.berkeley.edu> wrote

Quote:
In article <DZTSd.11318$534.1031 (AT) twister (DOT) nyc.rr.com>,
Winbatch <winbatch (AT) techie (DOT) com> wrote:
Is there a free or shareware tool to detect memory leaks in C++ programs?
I've done a variety of google searches but either came up with commercial
products or ones I could not get to detect blatantly leaking code.

The Boehm Collector is free, and can be used to detect leaks.
http://www.hpl.hp.com/personal/Hans_Boehm/gc/
--
Mark Ping
[email]emarkp (AT) soda (DOT) CSUA.Berkeley.EDU[/email]



Back to top
E. Mark Ping
Guest





PostPosted: Thu Feb 24, 2005 5:21 am    Post subject: Re: Memory Leak Detection Reply with quote

In article <EmaTd.11405$534.8522 (AT) twister (DOT) nyc.rr.com>,
Winbatch <winbatch (AT) techie (DOT) com> wrote:
Quote:
This also appears to be C (malloc/free) related based on this:

Using the Garbage Collector as Leak Detector
The garbage collector may be used as a leak detector. In this case, the
primary function of the collector is to report objects that were allocated
(typically with GC_MALLOC), not deallocated (normally with GC_FREE), but are
no longer accessible

It's both C and C++ compatible. It's a widely known GC implementation
for C and C++. Use it or not, I really don't care.
--
Mark Ping
[email]emarkp (AT) soda (DOT) CSUA.Berkeley.EDU[/email]

Back to top
Winbatch
Guest





PostPosted: Thu Feb 24, 2005 12:08 pm    Post subject: Re: Memory Leak Detection Reply with quote

All I was asking is if it would detect 'new' and 'delete' bugs and not just
malloc and free. ( I only use new and delete).
"E. Mark Ping" <emarkp (AT) soda (DOT) csua.berkeley.edu> wrote

Quote:
In article <EmaTd.11405$534.8522 (AT) twister (DOT) nyc.rr.com>,
Winbatch <winbatch (AT) techie (DOT) com> wrote:
This also appears to be C (malloc/free) related based on this:

Using the Garbage Collector as Leak Detector
The garbage collector may be used as a leak detector. In this case, the
primary function of the collector is to report objects that were allocated
(typically with GC_MALLOC), not deallocated (normally with GC_FREE), but
are
no longer accessible

It's both C and C++ compatible. It's a widely known GC implementation
for C and C++. Use it or not, I really don't care.
--
Mark Ping
[email]emarkp (AT) soda (DOT) CSUA.Berkeley.EDU[/email]



Back to top
Raymond Martineau
Guest





PostPosted: Thu Feb 24, 2005 11:06 pm    Post subject: Re: Memory Leak Detection Reply with quote

On Wed, 23 Feb 2005 04:51:47 GMT, "Winbatch" <winbatch (AT) techie (DOT) com> wrote:

Quote:
Is there a free or shareware tool to detect memory leaks in C++ programs?
I've done a variety of google searches but either came up with commercial
products or ones I could not get to detect blatantly leaking code.


There was an posting in clc++.moderated about a memory leak detector and
how to write one yourself (or at least adapt a detector to handle the new
and delete operators). The only problem is that it relies on macros, which
can interfere with programs using the placement new and delete operators.
http://wyw.dcweb.cn/leakage.htm


Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.