ManagedObject
✖
ManagedObject
Details

- ManagedObject is returned by functions such as CreateManagedObject.
- Only active managed objects evaluate the freeing function when they are no longer referenced.
- Managed objects can be inactivated with UnmanageObject.
- Information for a ManagedObject may include the following properties:
-
"Active" True if the object is actively being managed "BaseValue" the base value "FreeingFunction" the freeing function "Value" the value - Properties can be accessed with ManagedObject[…][prop].
- Properties that can be extracted include all Information properties listed above.
- Many functions that expect pointer objects will automatically unwrap managed expressions containing pointers.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (1)Survey of the scope of standard use cases
Information (1)

https://wolfram.com/xid/05e9yu7qmq-foy396

Get Information about the object:

https://wolfram.com/xid/05e9yu7qmq-mffoz6

Get the value of the managed object:

https://wolfram.com/xid/05e9yu7qmq-j20rsp

Get the freeing function of the object:

https://wolfram.com/xid/05e9yu7qmq-jqd047

List the operations available to this object:

https://wolfram.com/xid/05e9yu7qmq-2gi9pf

Properties & Relations (3)Properties of the function, and connections to other functions

https://wolfram.com/xid/05e9yu7qmq-2b12aa

To stop managing the object, use UnmanageObject:

https://wolfram.com/xid/05e9yu7qmq-yazsg4

The ManagedObject is no longer active:

https://wolfram.com/xid/05e9yu7qmq-zsgwia

Functions like RawMemoryAllocate return a managed RawPointer:

https://wolfram.com/xid/05e9yu7qmq-fx5yl9

The freeing function is RawMemoryFree:

https://wolfram.com/xid/05e9yu7qmq-4ziof5

Export a string as raw memory:

https://wolfram.com/xid/05e9yu7qmq-9fh5e8

Read the value stored in the pointer:

https://wolfram.com/xid/05e9yu7qmq-u9eesj

Many functions will automatically unwrap managed pointers:

https://wolfram.com/xid/05e9yu7qmq-vch09u

Wolfram Research (2023), ManagedObject, Wolfram Language function, https://reference.wolfram.com/language/ref/ManagedObject.html.
Text
Wolfram Research (2023), ManagedObject, Wolfram Language function, https://reference.wolfram.com/language/ref/ManagedObject.html.
Wolfram Research (2023), ManagedObject, Wolfram Language function, https://reference.wolfram.com/language/ref/ManagedObject.html.
CMS
Wolfram Language. 2023. "ManagedObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ManagedObject.html.
Wolfram Language. 2023. "ManagedObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ManagedObject.html.
APA
Wolfram Language. (2023). ManagedObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ManagedObject.html
Wolfram Language. (2023). ManagedObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ManagedObject.html
BibTeX
@misc{reference.wolfram_2025_managedobject, author="Wolfram Research", title="{ManagedObject}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/ManagedObject.html}", note=[Accessed: 24-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_managedobject, organization={Wolfram Research}, title={ManagedObject}, year={2023}, url={https://reference.wolfram.com/language/ref/ManagedObject.html}, note=[Accessed: 24-April-2025
]}