Limited TCL funtionality in Scilab 6 (TCL_GetVar, TCL_CreateSlave, TCL_EvalStr)
Reported by kwgbudsh
BUG DESCRIPTION:
----------------
1)
TCL_GetVar does not work for arrays.
-> Error-Message: "TCL_GetVar: No more memory."
2)
Scilab Console often freezes if running the TCL_CreateSlave ... (see below) as one block.
So if you copy this block in the console window and execute it, often the sequence will not finish and can't be interrupted anymore.
3)
If TCL_EvalStr("ScilabEval h=5") is called within a function, the created Variable h is created at toplevel
in the workspace and not on function level.
All this unexpected behavior does not happen in Scilab 5.5.2.
HOW TO REPRODUCE THE BUG:
-------------------------
1)
a=["A","B","C";"D","E","F"];
TCL_SetVar("A",a)
AfromTCL=TCL_GetVar("A")
2)
TCL_CreateSlave('TCLSlave')
b=[66,44,11;22,33,55];
TCL_SetVar("B_slave",b,'TCLSlave')
BfromTCL_slave=TCL_GetVar('B_slave','TCLSlave')
TCL_DeleteInterp('TCLSlave')
3)
function xyz()
TCL_EvalStr("ScilabEval h=5")
endfunction