digitalmars.D.learn - Can't use threads
- Aldo (8/8) May 04 2019 Hello,
- Andre Pany (8/17) May 04 2019 Does it work on windows if you compile it it as 64 bit
- Aldo (5/13) May 05 2019 No. I tried to compile it as 64 bit and 32, I lowered ubyte[]
- Andre Pany (7/22) May 05 2019 What I can see from source code in DRuntime, windows api
- zabruk (14/14) May 05 2019 It works for me (Microsoft Windows [Version 10.0.17134.706]
- zabruk (4/18) May 05 2019 DMD32 D Compiler v2.084.0
- Ron Tarrant (6/8) May 06 2019 Works for me...
- Aldo (5/14) May 06 2019 Tried the code at work, its working on a Windows 10
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 ? thanks.
May 04 2019
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 the allocated ubyte array it works...can you help me ? thanks.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 32 bit architecture is default. Kind regards Andre
May 04 2019
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 32 bit architecture is default. Kind regards AndreNo. I tried to compile it as 64 bit and 32, I lowered ubyte[] data to 4096, and I still have this exception. Used dub and dmd -i to compile. Thats weird.
May 05 2019
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:What I can see from source code in DRuntime, windows api GetThreadContext is failing, therefore the error message you can see. Can you test it with a recent version of dmd and if error still exists, please file an issue on issues.dlang.org Kind regards AndreOn 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 32 bit architecture is default. Kind regards AndreNo. I tried to compile it as 64 bit and 32, I lowered ubyte[] data to 4096, and I still have this exception. Used dub and dmd -i to compile. Thats weird.
May 05 2019
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!
May 05 2019
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!
May 05 2019
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/p4ThlDWorks 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.
May 06 2019
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:Tried the code at work, its working on a Windows 10 machine...it's crazy. I used the same DMD (last release)...I will try to debug this at home later. Thanks for your help.i'm trying to run 3 threads with the following code : https://run.dlang.io/is/p4ThlDWorks 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.
May 06 2019