I came across a bug regarding importing MQL libraries (build 5146) that seems to involve the MQL runtime. The problem is that when changing the return type of a imported function, and the changed type has the same size with the prior one, the program that imports the function will fail to load. First move was to delete (plus recompile of course) the EX5 library, but it did not help, ultimately we have to reload the terminal for the functionality to return to normal
Them just change the return type from long to ulong (on both files), recompile library/expert, but the expert will fail to load - unless we reload the terminal
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello,
I came across a bug regarding importing MQL libraries (build 5146) that seems to involve the MQL runtime. The problem is that when changing the return type of a imported function, and the changed type has the same size with the prior one, the program that imports the function will fail to load. First move was to delete (plus recompile of course) the EX5 library, but it did not help, ultimately we have to reload the terminal for the functionality to return to normal
Here is how to reproduce it:
Library eg "libbug.ex5"
Expert
Them just change the return type from long to ulong (on both files), recompile library/expert, but the expert will fail to load - unless we reload the terminal
greets