Opened 10 years ago
#3112 new defect
Interactive execution of functions fail in for loops sometimes
Reported by: | Per Östlund | Owned by: | somebody |
---|---|---|---|
Priority: | normal | Milestone: | Future |
Component: | Interactive Environment | Version: | trunk |
Keywords: | Cc: | Martin Sjölund, Adrian Pop |
Description
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.
Attachments (1)
Note:
See TracTickets
for help on using tickets.