<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Oct 18, 2013 at 7:34 PM, Michael Truog <span dir="ltr"><<a href="mailto:mjtruog@gmail.com" target="_blank">mjtruog@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>It is hard to say what the issue is
(from my point of view) with the information given. However,
there is a way of generating a port driver automatically, with
async support here: <a href="https://github.com/okeuday/GEPD" target="_blank">https://github.com/okeuday/GEPD</a> . If you try
the example, or look at it, it should help... it is doing an async
request after a sleep, as shown in the output within the README
(and you may be able to adapt your source code to use it, to avoid
some of the port driver details, if that helps you).<div><div class="h5"></div></div></div></div></blockquote></div><br></div><div class="gmail_extra">I figured it out, I had earlier found that calling driver_mk_port() didn't work inside of the readyio callbacks, so I call it during driver start, but I had not stored it properly in my driver data structure. So the value I was passing into erl_drv_output_term() was in fact garbage (although it didn't crash the system).</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">In any case, I found the issue and it all works perfectly now!</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks for taking the time to respond.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">-W</div></div>