abort()

Aaron Heckmann aaron.heckmann at gmail.com
Mon Nov 8 17:34:45 CET 2010


What is the reasoning behind gmp using abort() when out of memory as opposed
to throwing an exception? I'm writing a binding for nodejs where aborting
isn't an option. Are there any work arounds?

gmp: overflow in mpz type
Aborted
*
*
http://gmplib.org:8000/gmp-4.3/file/2fab0bbcffb4/mpz/realloc.c*
*
-- 
Aaron


More information about the gmp-discuss mailing list