represents a managed object.


  • ManagedObject is returned by functions such as CreateManagedObject.
  • Properties can be accessed with ManagedObject[][prop].
  • The following possible properties can be used:
  • "Active"True if the object is actively being managed
    "BaseValue"the base value
    "FreeingFunction"the freeing function
    "Value"the value
  • Many functions that expect pointer objects will automatically unwrap managed expressions containing pointers.
  • Only active managed objects evaluate the freeing function when they are no longer referenced.
  • Managed objects can be inactivated with UnmanageObject.


open allclose all

Basic Examples  (2)

Create a managed object:

Get the contained expression:

f[expr] is evaluated once the managed object is no longer referenced:

Scope  (1)

Information  (1)

Create a managed object:

Get Information about the object:

Get the value of the managed object:

Get the freeing function of the object:

List the operations available to this object:

Properties & Relations  (3)

Create a managed object:

To stop managing the object, use UnmanageObject:

The ManagedObject is no longer active:

Functions like RawMemoryAllocate return a managed RawPointer:

The freeing function is RawMemoryFree:

Export a string as raw memory:

Read the value stored in the pointer:

Many functions will automatically unwrap managed pointers:

Wolfram Research (2023), ManagedObject, Wolfram Language function,


Wolfram Research (2023), ManagedObject, Wolfram Language function,


Wolfram Language. 2023. "ManagedObject." Wolfram Language & System Documentation Center. Wolfram Research.


Wolfram Language. (2023). ManagedObject. Wolfram Language & System Documentation Center. Retrieved from


@misc{reference.wolfram_2023_managedobject, author="Wolfram Research", title="{ManagedObject}", year="2023", howpublished="\url{}", note=[Accessed: 04-October-2023 ]}


@online{reference.wolfram_2023_managedobject, organization={Wolfram Research}, title={ManagedObject}, year={2023}, url={}, note=[Accessed: 04-October-2023 ]}