I have an indicator that is stopping with a stack overflow error. I thought maybe because i am using a recursive function so i rewrote it removed the recursive function and i am still getting the overflow error.
instead of just using an indicator i converted the code to be an EA added the directive stacksize to 16MB but i am still getting the same error, are there any other issues that cause this error that i should be aware of?
You are absolutely right!!! a stray line of code which is was not supposed to be there doing a infinite recursive loop
I got rid of it and i am in the clear now... i should stop coding when tired
Thanks a lot!!!
i added that code when i was very tired, and it was a copy and paste, a function A that was calling my function B. now I copied some logic in function A and added it to function B (just beacuse i didnt want to rewrite the for loop in function B) then i forgot to delete that line in function A that was calling function B basically function B was calling it self endlessly...
i burned a lot of hours trying to uproot this bug