[Cython] [cython-users] C++: how to handle failures of 'new'?
Sturla Molden
sturla at molden.no
Wed Jul 4 15:44:01 CEST 2012
Sendt fra min iPad
Den 4. juli 2012 kl. 14:33 skrev Stefan Behnel <stefan_ml at behnel.de>:
>>
>> Indeed. But how to tell? malloc a small buffer and see if it works?
>
> In the worst case, you'd get another memory error during cleanup and it
> would keep rippling up the stack.
>
>
Which is why I wrote 'malloc' instead of 'new'. It doesn't throw a new exception. :-)
Sturla
More information about the cython-devel
mailing list