Re: DeviceKit and /usr
On Tue, Sep 08, 2009 at 01:16:08PM +0200, Josselin Mouette wrote:
> Le mardi 08 septembre 2009 à 13:00 +0200, Bjørn Mork a écrit :
> > Trusting a library to do all your error handling and cleanup is not good
> > style IMHO. In addition to the lack of self-documenting source, it
> > often leave you with the meaningless generic error messages some OSes
> > are so full of. Applications doing their own error handling are in a
> > much better position to provide specific meaningfull error messages to
> > the user.
>
> If a memory allocation failed while you were manipulating strings (an
> operation with very low requirements), you are not likely to obtain
> enough memory to even display an error message.
You probably still have enough memory available on the stack to handle
memory allocation errors on the heap.
Mike
Reply to: