<div dir="ltr"><div><div>zeroMemory(&scd, scd.sizeof);<br><br>void zeroMemory(void* ad,size_t size){<br>    (cast(byte*)& ad)[0 .. size] = 0;<br>}<br><br>....<br></div>I was totally corrupting my stack and it's not even needed in D, the compiler zero's it out automatically.<br></div>Mystery solved, thanks a lot irc (adam,wolfgang,...)<br><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-08-24 17:26 GMT+02:00 maarten van damme <span dir="ltr"><<a href="mailto:maartenvd1994@gmail.com" target="_blank">maartenvd1994@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I should probably add that the error is a hresult, being 0 when it works but -2005270527 when it fails.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-08-24 17:24 GMT+02:00 maarten van damme <span dir="ltr"><<a href="mailto:maartenvd1994@gmail.com" target="_blank">maartenvd1994@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi all.<br><br></div>This works (dub --arch=x86_mscoff) <a href="http://dpaste.com/1XCJEX7" target="_blank">http://dpaste.com/1XCJEX7</a> but this fails : <a href="http://dpaste.com/1C7WMB7" target="_blank">http://dpaste.com/1C7WMB7</a> .<br><br></div>Notice that all I've done is manually inlined init3d...<br><br></div>You can compile this with the following dub.json<br><br><a href="http://dpaste.com/2QBQFSX" target="_blank">http://dpaste.com/2QBQFSX</a><br><br></div>Any help would be appreciated, it make absolutely no sense to me.<br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>