Re: very odd directx 11 error

2017-08-24 Thread maarten van damme via Digitalmars-d-learn
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 : > Hi all. > > This works (dub --arch=x86_mscoff) http://dpaste.com/1XCJEX7 but this > fails : http://dpaste.com/1C7WMB7

very odd directx 11 error

2017-08-24 Thread maarten van damme via Digitalmars-d-learn
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

Re: Building custom library package with dub

2017-08-24 Thread alexander1974 via Digitalmars-d-learn
On Saturday, 18 March 2017 at 13:47:34 UTC, alex1974 wrote: On Saturday, 18 March 2017 at 13:41:12 UTC, Mike Parker wrote: On Saturday, 18 March 2017 at 12:49:33 UTC, alex1974 wrote: This simple layout works, but then all parts will be compiled every time. Is there a way to just compile the

Re: Long File path Exception:The system cannot find the path specified

2017-08-24 Thread Vino.B via Digitalmars-d-learn
On Wednesday, 23 August 2017 at 13:50:18 UTC, Vino.B wrote: On Wednesday, 23 August 2017 at 13:14:31 UTC, Moritz Maxeiner wrote: [...] Hi, [...] Hi, Any idea of what is causing this issue.

Re: Long File path Exception:The system cannot find the path specified

2017-08-24 Thread vino via Digitalmars-d-learn
On Thursday, 24 August 2017 at 12:16:22 UTC, Vino.B wrote: On Wednesday, 23 August 2017 at 13:50:18 UTC, Vino.B wrote: On Wednesday, 23 August 2017 at 13:14:31 UTC, Moritz Maxeiner wrote: [...] Hi, [...] Hi, Any idea of what is causing this issue. Hi, Thanks for your support, was

Re: Choosing between enum arrays or AliasSeqs

2017-08-24 Thread Meta via Digitalmars-d-learn
On Thursday, 24 August 2017 at 19:41:46 UTC, Nordlöw wrote: Given enum e = ['a', 'b', 'c']; import std.meta : AliasSeq; enum a = AliasSeq!['a', 'b', 'c']; is it somehow possible to convert (at compile-time) `e` to `a`? Is it cheaper CT-performance wise to use AliasSeq instead of

Choosing between enum arrays or AliasSeqs

2017-08-24 Thread Nordlöw via Digitalmars-d-learn
Given enum e = ['a', 'b', 'c']; import std.meta : AliasSeq; enum a = AliasSeq!['a', 'b', 'c']; is it somehow possible to convert (at compile-time) `e` to `a`? Is it cheaper CT-performance wise to use AliasSeq instead of enum static arrays? My use case is expressed by the TODOs in

Re: very odd directx 11 error

2017-08-24 Thread maarten van damme via Digitalmars-d-learn
zeroMemory(, 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

Terminating a thread (which is blocking)

2017-08-24 Thread Timothy Foster via Digitalmars-d-learn
I've started a thread at the beginning of my program that waits for user input: `thread = new Thread().start;` `static void checkInput(){ foreach (line; stdin.byLineCopy) { ... } }` I need to stop checking for user input at some point in my program but I'm not sure how to kill this

Re: SMTP Mail

2017-08-24 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 22 August 2017 at 12:52:24 UTC, Vino.B wrote: Request your help on sending Mails, I am able to receive mails with empty body the line "smtp.message ="Example Message" doesn't seem to be working and also please let me know how do i send a file as a attachment in a email. The

OpenMAX bindings

2017-08-24 Thread Johnson via Digitalmars-d-learn
Anyone?

Web servers in D

2017-08-24 Thread Hasen Judy via Digitalmars-d-learn
What libraries are people using to run webservers other than vibe.d? Don't get me wrong I like the async-io aspect of vibe.d but I don't like the weird template language and the fact that it caters to mongo crowd. I think for D to a have good web story it needs to appeal to serious backend