Don't know if this is relevant, but when you run it in WinXP are the libraries/dlls re-compiled to target 32-bit?
Testing it on Windows 7 (x64) with MetaTrader build 451 (also for build 438) it works normally.
HarriMQL4:
MetaTrader 4 is 32 bit only as far as I know (see also: https://www.mql5.com/en/forum/138294). Also how would it work in certain situations if it's not a win32 dll?
Don't know if this is relevant, but when you run it in WinXP are the libraries/dlls re-compiled to target 32-bit?
Metatrader is 32 bit only, but you are calling/trying to call dlls/libraries from Metatrader. You said you built the libraries using Visual Studio 2012. In the project configuration for this did you select a Win32 build configuration? If you build the dll for x64, Metatrader will not be happy.
HarriMQL4:
Metatrader is 32 bit only, but you are calling/trying to call dlls/libraries from Metatrader. You said you built the libraries using Visual Studio 2012. In the project configuration for this did you select a Win32 build configuration? If you build the dll for x64, Metatrader will not be happy.
Metatrader is 32 bit only, but you are calling/trying to call dlls/libraries from Metatrader. You said you built the libraries using Visual Studio 2012. In the project configuration for this did you select a Win32 build configuration? If you build the dll for x64, Metatrader will not be happy.
Again: how would it work with the lock_guard line commented out?... But for easier deduction: yes, it is win32...
Hi lesliel,
Did you find a solution to the problem? Am having similar issues.
Regards
Vivek
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have a native library built with Visual Studio 2012. Required project configuration properties:
ExpertSample.cpp:
test.mq4:
Testing it on Windows 7 (x64) with MetaTrader build 451 (also for build 438) it works normally.
Testing it in the WinXP Mode Virtual PC (running inside the same Windows 7), when the EA is removed from the chart, the whole terminal is closed. There is no crash report dialog, or anything in the log files.
The above code is just a subset of a larger project. In that project, when the library was built with all kind of debug information and a lot of outputs, the problem seemed to happen less often.
Does anybody know how to fix it, or whether it's a MetaTrader 4 or WinXP Mode Virtual PC issue?