[fpc-pascal] InterlockedExchangeAdd64
Adriaan van Os
adriaan at adriaan.biz
Fri Jan 10 15:43:20 CET 2025
I have an arm64 (aarch64) test program on MacOS that calls InterlockedExchangeAdd64 with a target
variable that is not 8-byte aligned. Running the test program emits "EBusError: Bus error or
misaligned data access".
So far so good.
But now I install a system.ErrorProc and run the same program. It emits, instead of the EBusError,
Runtime Error 214.
This puzzles me.
Of course, I can add a bug report.
Regards,
Adriaan van Os
More information about the fpc-pascal
mailing list