Can't get a resource in a nif

Erik Axling axling@REDACTED
Wed Jan 19 11:38:24 CET 2011


Hello!

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: https://gist.github.com/785854

Thanks for any help.
/Erik Axling


More information about the erlang-questions mailing list