Damn it!  Once again, I was thwarted by size_t.  Thanks Scott, this worked:

void * operator new   ( UInt32 s ) { return _DbgNew( s ); }

I was trying it with a size_t.  Silly me!
-Jeff Ishaq

"Scott L. Johnson" <[EMAIL PROTECTED]> wrote in message
news:11740@palm-dev-forum...
>
> > From: Jeff Ishaq [mailto:[EMAIL PROTECTED]]
> > Hey folks.  I'm fine-tuning an in-house memory debugging
> > utility, and I'm curious if it's possible to override the global
> > operators new() and delete()?
>
> Yes, no problem.  And in fact overriding the MSL ones can even make your
> program smaller.  The MSL operators pull in several Kbytes of exception
> handling code even if your program doesn't use exceptions.
>
> > How can I wrap the global new and delete operators that your
> > average C++ CW6 program utilize?
>
> Start here:
>
>     http://www.egroups.com/message/palm-dev-forum/29539
>     http://www.egroups.com/message/palm-dev-forum/29563
>
> -slj-
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to