very odd directx 11 error
maarten van damme via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Aug 24 13:15:05 PDT 2017
zeroMemory(&scd, scd.sizeof);
void zeroMemory(void* ad,size_t size){
(cast(byte*)& ad)[0 .. size] = 0;
}
....
I was totally corrupting my stack and it's not even needed in D, the
compiler zero's it out automatically.
Mystery solved, thanks a lot irc (adam,wolfgang,...)
2017-08-24 17:26 GMT+02:00 maarten van damme <maartenvd1994 at gmail.com>:
> I should probably add that the error is a hresult, being 0 when it works
> but -2005270527 when it fails.
>
> 2017-08-24 17:24 GMT+02:00 maarten van damme <maartenvd1994 at gmail.com>:
>
>> Hi all.
>>
>> This works (dub --arch=x86_mscoff) http://dpaste.com/1XCJEX7 but this
>> fails : http://dpaste.com/1C7WMB7 .
>>
>> Notice that all I've done is manually inlined init3d...
>>
>> You can compile this with the following dub.json
>>
>> http://dpaste.com/2QBQFSX
>>
>> Any help would be appreciated, it make absolutely no sense to me.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20170824/15c82993/attachment.html>
More information about the Digitalmars-d-learn
mailing list