[erlang-questions] NIF Problem

Travis Jensen travis.jensen@REDACTED
Thu Apr 28 20:01:38 CEST 2011

On Thu, Apr 28, 2011 at 4:07 AM, Jachym Holecek <freza@REDACTED>wrote:

> Just a random guess really, but your key_bin doesn't seem to be a proper
> term
> suitable for returning to Erlang, shoudln't you run enif_make_binary() on
> it?
> The compiler should warn you about that too, unless ERL_NIF_TERM is
> something
> hopelessly vague like "void *"...
> Regards,
>         -- Jachym

That was a really good random guess. :)  Replaced that with the term passed
in (since it doesn't change) and it worked perfectly.

Thanks for your sharp eyes!

*Travis Jensen*
*Read the Software Maven @ http://softwaremaven.innerbrane.com/
Read my LinkedIn profile @ http://www.linkedin.com/in/travisjensen
Read my Twitter mumblings @ http://twitter.com/SoftwareMaven
Send me email @ travis.jensen@REDACTED

**What kind of guy calls himself the Software Maven???**
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110428/9082d2fd/attachment.htm>

More information about the erlang-questions mailing list