>
>After looking at your example it has became clear that the issue is that the object is still associated with the FXP. Until the object is released, the FXP can not be deleted.
>I have instituted a garbage collection to remove any unused FXP files from the Temp folder (I marker each file name with a prefix to identify.)
>This All about preventing clutter and blot.
>
>Personally, I am looking for a solution that does involve writing ANY thing to disk before processing. The ExecScript does not seem to provide the solution; returning a NULL on a CreateObject, when the object was created.
>
>Well, the search continues. I have too much time on my hands.
If your object is completely transient, and live only on the EXECSCRIPT() scope, something like this?
LOCAL SourceCode AS String
m.Section = "XYZ"
TEXT TO m.SourceCode NOSHOW TEXTMERGE
LPARAMETERS Parm1 AS Number, Parm2 AS Number
LOCAL Instance AS Object
m.Instance = CREATEOBJECT("<<m.Section>>")
RETURN m.Instance.Operation(m.Parm1, m.Parm2)
DEFINE CLASS <<m.Section>> AS Custom
FUNCTION Operation (Op1 AS Number, Op2 AS Number)
RETURN m.Op1 * m.Op2
ENDFUNC
ENDDEFINE
ENDTEXT
? EXECSCRIPT(m.SourceCode, 3, 5)
----------------------------------
António Tavares Lopes