Xojo.Core.WeakRef.Create
From Xojo Documentation
Shared Method
Xojo.Core.WeakRef.Create(value As Object) As Xojo.Core.WeakRef
Supported for all project types and targets.
Supported for all project types and targets.
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: