Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() '// A 'NewUsing' block ensures the expression is automatically released at the end of the scope. '// This is the safest pattern to prevent memory leaks. Using expr As New uCalc.Expression("5 * 10") Console.WriteLine($"Result within scope: {expr.Evaluate()}") End Using '// The 'expr' object is now released and its handle is invalid. Console.WriteLine("Expression has been automatically released.") End Sub End Module