The only thing it can guess about is a function that passes by reference.
res = fn1(var1,var2,var3,var4);
double fn1( double& var1 , int& var2 , double& var3 , int& var4)
If i manually give these byref variables a value - no error.
But i'm not sure if that is because something is now not happenning
Is "pause" something that has happened before?
var1,var2,var3,var4 are all being set to 0 before the call to fn1
I changed the function to use globals and not by reference - but still a pause at end of start();
EA can't pause in the tester, (no sleep.) you have a infinite loop. Add print statements at the beginning and before each return of your major functions and hunt down where it's going in but not coming out.
Also look in the log for divide by zero, that doesn't pause it, it kills it.