﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3112	Interactive execution of functions fail in for loops sometimes	Per Östlund	somebody	"It seems there's something that goes wrong if a function that calls another function is called inside a for loop in a mos-script and CevalFunction fails on it. Running the attached script causes the function to be executed once, and the next call then fails with an error message:
{{{
[SimCode/SimCodeUtil.mo:8699:9-8699:50:writable] Error: Internal error function getCalledFunctionsInFunction2: Class f1 not found in global scope.
}}}
The issue only seem to occur inside a for loop, calling the function multiple times works fine without the loop. Calling the function multiple times inside the for-loop still causes it to fail after the first call though."	defect	new	normal	Future	Interactive Environment	trunk			Martin Sjölund Adrian Pop
