Can't get a resource in a nif

Erik Axling <>
Wed Jan 19 11:38:24 CET 2011


I'm trying to write a NIF for the Fast Artificial Neural Network library
that is written in C. But I'm running into a problem where I use a resource
to allocate a pointer for a network that I have created. When I try to get
that resource it fails for an unknown reason.  I have used printfs to be
able to know where the error occurs. My NIF returns a badarg.
The C code is here:

Thanks for any help.
/Erik Axling

More information about the erlang-questions mailing list