[Digikam-devel] [Bug 190593] DigiKam crashes on start-up
Gilles Caulier
caulier.gilles at gmail.com
Sat Apr 25 09:10:55 BST 2009
https://bugs.kde.org/show_bug.cgi?id=190593
--- Comment #5 from Gilles Caulier <caulier gilles gmail com> 2009-04-25 10:10:50 ---
Andi,
Yes. To be sure new must return a valid pointer if allocation is fine. Else,
new return 0. So this code can be used :
uchar* myData = new uchar[mySize];
if (!myData) return false;
// myData can be used here.
return true;
But yes, as trace said, crash appear in new operator...
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Digikam-devel
mailing list