XojoScript Evaluator = memory leak

The Evaluator Xojoscript class found in Examples/Advanced/XojoScript/Evaluator leaks memory like crazy every time it is instantiated, and there appears to be no way to stop it. Anyone have a replacement?

Good catch. The Self.Context = Self is a circular reference. Adding this line after Self.Run in Evaluator.Eval should take care of it:

Self.Context = Nil

I’ll get this example updated.

Aha! Thank you, Paul! :slight_smile: