www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - __gshared 32 & 64 bit

reply Aldo <aldocd4 outlook.com> writes:
Hello,

is there a difference between __gshared on 32 and 64 bit apps ?

I have an IOCP app on windows that works correctly when compiled 
as 64 bit, but crash/block when compiled as 32 bit.

Thanks.
May 06 2019
parent reply Jacob Carlborg <doob me.com> writes:
On 2019-05-06 15:43, Aldo wrote:
 Hello,
 
 is there a difference between __gshared on 32 and 64 bit apps ?
Shouldn't be.
 I have an IOCP app on windows that works correctly when compiled as 64 
 bit, but crash/block when compiled as 32 bit.
Do you have a reduced test case? Which compilers have you used? Try LDC, unless you already have. -- /Jacob Carlborg
May 06 2019
parent Seb <seb wilzba.ch> writes:
On Monday, 6 May 2019 at 18:21:28 UTC, Jacob Carlborg wrote:
 On 2019-05-06 15:43, Aldo wrote:
 Hello,
 
 is there a difference between __gshared on 32 and 64 bit apps ?
Shouldn't be.
Yeah, maybe you're running into issues with the antique DigitalMars runtime? It has well-known issues with concurrency. Try LDC or the COFF output (-m32mscoff).
May 07 2019