On Thursday, 28 January 2021 at 12:42:09 UTC, Siemargl wrote:
Update. Something is broken in DLL support in druntime for Win7.
I take previous working in Win10 binary and try run it in
virtual Windows 7 SP1 x64.
Got this
C:\Proj\dtest>test_dll_exe.exe
object.Exception@test_dll_exe.d(7): Enforcement failed
----------------
0x00000001400013A3
0x00000001400012CC
0x0000000140001074
0x0000000140004123
0x0000000140003FAC
0x000000014000408B
0x0000000140003FAC
0x0000000140003EF3
0x00000001400019D0
0x0000000140001114
0x000000014002F60E
0x00000000771359CD in BaseThreadInitThunk
0x000000007736A561 in RtlUserThreadStart
Then i modify program, just removing DLL, copying TestFun() in
main module and it runs.
Same compiler -m64 target.
Ups. Sorry, I just forget copy test_dll.dll inside VM :-)
So, program runs in Win7, but hangs after printing i:64511