That's how I did it in my old driver. Then I switched to a NIF and life was so much easier with resources. You should think about using a NIF instead of a driver. <br><br><br>Sergej<br><br><div class="gmail_quote">On Thu, Aug 11, 2011 at 1:42 AM, Joel Meyer <span dir="ltr"><<a href="mailto:joel.meyer@gmail.com">joel.meyer@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">What's the recommended way to pass a pointer between a linked-in driver and the beam? I can cast it to a uint64_t and use ErlDrvUInt64 (and do the reverse when sending it back to the driver), but maybe there's a better way?<div>

<br></div><div>Thanks,</div><div>Joel</div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br>