I think that this code has no errors.
//Codes From controlerrors.mqh
//_CountErrors is constant 150.
// Error Line is 85,10 (Structure Array Error)
85 Errors.code = 10004;Errors.desc = "Requote";
But my ea( containing controlerrors.mqh) cannot init after several hours passed from terminal start.(with other eas and charts)
It says that my ea init failed.
1. Whats the reason? ex) Memory Leak
2. Any Function for this error? ex) Memory Free Function
0 03:09:45.893 Expert Optimizer EURUSD,M1: loaded successfully
1 03:09:45.949 Optimizer EURUSD,M1: array out of range in 'controlerrors.mqh' (85,10)
3 03:09:45.949 Optimizer EURUSD,M1: global initialization failed
The Code is above.
I made an automatic optimizer ea (automatically re-init) but it makes error after several hours from start (many re-init succeeded).
Check the returned value of ArrayResize().
Okay I will do it.
Any Methods for clearing increasing memory?
Memory Increases very slowly.
If you're running out of memory due to an array that stores errors, I'd say you have bigger problems to fix...