Thread overview
__gshared 32 & 64 bit
May 06, 2019
Aldo
May 06, 2019
Jacob Carlborg
May 07, 2019
Seb
May 06, 2019
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
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 07, 2019
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).