ERROR: MathRound + Windows Server 2019 + MetaTrader 4 = not working
- 2024.07.29
- Vu Trung Kien
- www.mql5.com
We are found a bug in the CRT function floor, when it fallback execution from SSE4.1 to SSE2 and CRT is linked as static library (/MT)
CRT function floor doesn't work properly if your CPU doesn't support SSE4.1
We are found a bug in the CRT function floor, when it fallback execution from SSE4.1 to SSE2 and CRT is linked as static library (/MT)
CRT function floor doesn't work properly if your CPU doesn't support SSE4.1
Thank you. I don't use servers with old computers. But clients from the market do. They use dedicated servers and get this error en masse.
Lets see what MS will say: https://developercommunity.visualstudio.com/t/function-floor-does-not-properly-work-on/10778831?
We will make custom floor to bypass this bug.
I found that the MathRound function does not work correctly in the MT4 terminal (latest version 1421) on Windows Server 2019
Results:
Round=0
I used different functions, but the problem is only on Server 2019.
MathCeil also doesn't work.
The same code on Standard Windows 11 works without problems.
Round=30
Solution: Now I use (int) instead of Math Round and everything works correctly.
The problem is only on Windows Server 2019