Xojo.Core.WeakRef.Create
From Xojo Documentation
Shared Method
Creates a WeakRef that wraps the given object.
Exceptions
- NilObjectException if value is Nil.
Sample Code
Create a WeakRef of an object instance:
Later you can test if there are references remaining by using the Value property: