Search the web
Sign In
New User? Sign Up
dmalloc · Debug Malloc Library (dmalloc) 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
HELP WITH C++   Message List  
Reply | Forward Message #103 of 529 |
Does dmalloc work with C++.

On the DEC I can get it to recognize that a memory leak exists
but it does not tell me where.

On AIX (Where I really need the tool) It will recognize a malloc
but "new" it just doesn't recognize it at all.

Plus compile errors with the overloaded operators in dmalloc.cc
(They do compile on the DEC)

void *
operator new[](size_t size)
{
char *file;
GET_RET_ADDR(file);
return _malloc_leap(file, 0, size);
}

void
operator delete[](void *pnt)
{
char *file;
GET_RET_ADDR(file);
_free_leap(file, 0, pnt);


> > "dmalloc.cc", line 61.13: 1540-076: (S) "void*(size_t)" is not
allowed
> > as an array element type.
> > "dmalloc.cc", line 61.1: 1540-073: (S) The "operator" declaration
must
> > declare a function.
> > "dmalloc.cc", line 84.16: 1540-076: (S) "void(void*)" is not
allowed as
> > an array element type.
> > "dmalloc.cc", line 84.1: 1540-073: (S) The "operator" declaration
must
> > declare a function.

Please Help

Douglas Campbell
douglas.campbell@...
703-449-4929




Mon Oct 18, 1999 6:28 pm

douglas.campbell@...
Send Email Send Email

Forward
Message #103 of 529 |
Expand Messages Author Sort by Date

Does dmalloc work with C++. On the DEC I can get it to recognize that a memory leak exists but it does not tell me where. On AIX (Where I really need the tool)...
douglas.campbell@...
Send Email
Oct 18, 1999
5:25 pm
Advanced

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