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

List:       kde-devel
Subject:    RE: About memory allocation failures....
From:       "Schmidt, John" <John_Schmidt () compuware ! com>
Date:       2002-01-28 17:53:35
[Download RAW message or body]

Monday, January 28, 2002 12:46, Thiago Macieira wrote:
> My opinion is that dealing with low-memory situations is best left to the 
> kernel. What we can do is abort with fatal errors and dump something to 
> stderr or .xsession-errors. Nevertheless, I try and test for new/malloc 
> returning 0 in almost every case and return with error.

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)...

John Schmidt
ServerVantage Development
Compuware Corporation
john.schmidt@compuware.com
http://www.compuware.com/products/vantage
 
>> 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