Posted by: Rainer Ebert
I had implemented a (little bit complex) class construct where I used
SalCompileAndEvaluate() to execute functions based on a given string which
includes function name and parameter: "Call SalCompileAndEvaluate(
'__Id2Name(2)', ...).
After some thousand calls of SalCompileAndEvaluate(), the application
(compiled with TD2.1PTF4) became unstable. Either the application simply
stopped execution in the middle of a function (pushbuttons/menues were still
working) or an invalid error message was displayed.
Fazit: SalCompileAndEvaluate() is not as stable as necessary(for me).
Solution: Replaced SalCompileAndEvalute() by an if-else if construct (20
else-ifs) as follows:
If sFct = '__Id2Name'
Set sRet = __Id2Name( sArg )
Else If ...
...
Rainer