code generation error

 

Hi,

I cannot find what is the problem with the attached code (gEA_test2.mq5). MQL5 compiler reports 'code generation error'.

If I rearrange the code layout (see gEA_test3.mq5) it compiles fine.

Is it the problem with my code or an error in the compiler?

Files:
gea_test2.mq5  18 kb
gea_test3.mq5  18 kb
 
Thank you for your message. Fixed. Please wait for updates.
 
me also...can you check what problem?
Files:
A.mq4  34 kb
 
elxtrx: me also...can you check what problem?

Same problem 'code generation error' on MT4 both:

MetaEditor 5.00 build 2138 06 Sep 2019
MetaTrader 4.00 Build 1210 06 Sep 2019

MetaEditor 5.00 build 2139 09 Sep 2019
MetaTrader 4.00 Build 1212 10 Sep 2019
 
elxtrx:
me also...can you check what problem?

This are actual errors of your code

'atur' - access to non-static member or function    A.mq4    272    18
'atur' - access to non-static member or function    A.mq4    284    21
'atur' - access to non-static member or function    A.mq4    327    24
'atur' - access to non-static member or function    A.mq4    350    24

 
Ilyas:

This are actual errors of your code

'atur' - access to non-static member or function    A.mq4    272    18
'atur' - access to non-static member or function    A.mq4    284    21
'atur' - access to non-static member or function    A.mq4    327    24
'atur' - access to non-static member or function    A.mq4    350    24

How do you have these error messages when we get "code generation error" ? (Tested with ME Build 2143).
 
Alain Verleyen:
How do you have these error messages when we get "code generation error" ? (Tested with ME Build 2143).

Just developer's build

 
Ilyas:

Just developer's build

Thanks. Got it with ME 2146.

So MT4 (Build 1220 with ME 2143) will be updated ?

 
When I try to login. Its showing as authorisation failed. What is the reason for that?
 
MANU M:
When I try to login. Its showing as authorisation failed. What is the reason for that?

What are you talking about!?!?

Log in to what????????

 
Keith Watford:

What are you talking about!?!?

Log in to what????????

Completely off-topic.
Reason: