[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: About memory allocation failures....
From:       Carsten Pfeiffer <carpdjih () cetus ! zrz ! tu-berlin ! de>
Date:       2002-01-28 23:02:04
[Download RAW message or body]

On Montag, 28. Januar 2002 18:53, Schmidt, John wrote:

> Testing the return on malloc SHOULD be a given.
> Here's something good to dump (or NOT)... the amount of memory allocated
> by the KDE process(es)...

AFAIK, the C++ standard says that new should never return 0L, instead it 
should throw a bad_alloc exception. So checking for 0L might work on some 
compilers, but is hardly reliable.

Cheers
Carsten Pfeiffer
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic