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