Re: Can't use threads

2019-05-06 Thread Aldo via Digitalmars-d-learn
On Monday, 6 May 2019 at 09:46:46 UTC, Ron Tarrant wrote: On Saturday, 4 May 2019 at 22:29:26 UTC, Aldo wrote: i'm trying to run 3 threads with the following code : https://run.dlang.io/is/p4ThlD Works for me... Windows 10 Pro DMD 2.085.1 (-de -w -m64 switches) Note: I didn't use dub, so

Re: Can't use threads

2019-05-06 Thread Ron Tarrant via Digitalmars-d-learn
On Saturday, 4 May 2019 at 22:29:26 UTC, Aldo wrote: i'm trying to run 3 threads with the following code : https://run.dlang.io/is/p4ThlD Works for me... Windows 10 Pro DMD 2.085.1 (-de -w -m64 switches) Note: I didn't use dub, so perhaps there's something going on there.

Re: Can't use threads

2019-05-05 Thread Andre Pany via Digitalmars-d-learn
On Sunday, 5 May 2019 at 12:28:34 UTC, Aldo wrote: On Sunday, 5 May 2019 at 03:32:37 UTC, Andre Pany wrote: On Saturday, 4 May 2019 at 22:29:26 UTC, Aldo wrote: Does it work on windows if you compile it it as 64 bit application (-m64 argument if I remember correctly, dub argument -a x86_64)?

Re: Can't use threads

2019-05-05 Thread Aldo via Digitalmars-d-learn
On Sunday, 5 May 2019 at 03:32:37 UTC, Andre Pany wrote: On Saturday, 4 May 2019 at 22:29:26 UTC, Aldo wrote: Does it work on windows if you compile it it as 64 bit application (-m64 argument if I remember correctly, dub argument -a x86_64)? On linux and Darwin 64 is default while on windows

Re: Can't use threads

2019-05-05 Thread zabruk via Digitalmars-d-learn
DMD32 D Compiler v2.084.0 code comiled by command dmd -i "test.d" On Sunday, 5 May 2019 at 09:31:13 UTC, zabruk wrote: It works for me (Microsoft Windows [Version 10.0.17134.706] 64-bit) start! start! start! end! end! end! start! start! end! start! end! end!

Re: Can't use threads

2019-05-05 Thread zabruk via Digitalmars-d-learn
It works for me (Microsoft Windows [Version 10.0.17134.706] 64-bit) start! start! start! end! end! end! start! start! end! start! end! end!

Re: Can't use threads

2019-05-04 Thread Andre Pany via Digitalmars-d-learn
On Saturday, 4 May 2019 at 22:29:26 UTC, Aldo wrote: Hello, i'm trying to run 3 threads with the following code : https://run.dlang.io/is/p4ThlD It works on run.dlang.io but not on my windows 10 : core.thread.ThreadError@src\core\thread.d(3078): Unable to load thread context If I lower

Can't use threads

2019-05-04 Thread Aldo via Digitalmars-d-learn
Hello, i'm trying to run 3 threads with the following code : https://run.dlang.io/is/p4ThlD It works on run.dlang.io but not on my windows 10 : core.thread.ThreadError@src\core\thread.d(3078): Unable to load thread context If I lower the allocated ubyte array it works...can you help me ?