Questions about MQL4 - page 5

 
Here's another thing...
Is there any way to unload the indicator and Expert Advisor from the window using software?
Or neither load nor unload?
 
No.
 
OK...
 
When a MessageBox created by the user (Expert Advisor or script) is displayed on the screen, the options for controlling the MT are available.
For example, a right-click menu is available. This has EAs>>Delete.
Nothing happens when I click on this Remove.

Is this the way it should be or is this a fault? Maybe you meant to make MT unavailable until you press OK or other buttons on the MessageBox?

If MessageBox is created by MT (e.g. when trying to move from one timeframe to another when the script is loaded), MT is not available.
 
Right...

Is it not allowed to use Alert() in init() ?

In my script, that kind of usage blocks MT, I have to overload it...
It took me a while to figure out what's wrong.
Is this a normal state of affairs or a glitch?
 
<br / translate="no"> Is this the norm or a glitch?

glitch
 
Slawa,
thank you very much for replying.

Also, can you please clarify what is the reason for this glitch?
Is it a flaw in MT or am I doing something wrong?

I am using the 184 build. I have unloaded all programs, removed Expert Advisors and indicators and put only one such script:
int init() { int A=0; Alert ("A = ",A); return; }


And Traida's out...
What to do?

 
Now I tried this script on another machine - W98, build 183.
The traida crashed so hard it won't start again, had to reboot the machine.
 
Also, can you please clarify the reason for this glitch? <br / translate="no"> Is this a flaw in MT or am I doing something wrong?

Flaw



What should I do?

Do not use an alert when initialising the script until a new build is released.
 
Slawa,
OK, thanks.

If so, you can also take into account that
for deinit() to reject ObjectDelete(), it is necessary that deinit() does not have Alert().
And in this case Alert() itself works correctly and does not hang anything.