MT4 · Runtime errors
MT4 4021 · Not enough memory for temp string returned from function | YI GOLD
ERR_NO_MEMORY_FOR_RETURNED_STR
Official meaning
Not enough memory for temp string returned from function
Possible causes · YI GOLD suggestions
Available memory or call stack is insufficient, or recursion and buffers are excessive.
Troubleshooting · YI GOLD suggestions
Reduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results.