[Cython] [cython-users] C++: how to handle failures of 'new'?

Sturla Molden sturla at molden.no
Wed Jul 4 13:03:24 CEST 2012



Den 4. juli 2012 kl. 08:06 skrev Stefan Behnel <stefan_ml at behnel.de>:

> 
> 
> Also, the allocation may have failed on a larger block of memory, which is
> then unused when the exception gets raised and can be used by cleanup code.
> I really don't think the world is all that dark here.
> 
> 


Indeed. But how to tell? malloc a small buffer and see if it works?

Sturla





More information about the cython-devel mailing list