uCalc API Version: 5.7.0-preview.1 Released: 7/30/2026
Warning
uCalc API Preview Release Notice:This preview documentation describes the intended behavior of the API. It is not fully accurate or complete.The current preview build contains incomplete features, unoptimized performance, and is subject to breaking changes.Use of the preview version in your production code is not recommended.
Product:
Class:
Retrieves the internal handle of a uCalc object using its class type and memory index.
The internal handle of the object at the specified index. Returns 0 if no object is found.
The MemoryObjectAddress method is a low-level diagnostic tool used to retrieve an object's internal handle by using its stable memory index. It is primarily intended for advanced debugging and internal diagnostics.
Given an object's memory index (obtained from a method like Item.MemoryIndex()), this function returns the corresponding object Handle, which is an opaque identifier used internally by the uCalc library.
It is critical to understand the difference between these two identifiers:
| Feature | Handle | Memory Index |
|---|---|---|
| Stability | Volatile. A handle's value is unpredictable and can change between application runs. | Stable. Memory indices are predictable and generally sequential. |
| Uniqueness | Guaranteed unique for an object's lifetime. | Can be recycled after an object is released. |
| Purpose | Low-level object identification for the C++ core. | High-level diagnostics and tracking object lifetime. |
This function bridges the gap between the two, allowing you to find a volatile handle using a stable index.
Note: This is a static function and is not called on a
uCalcinstance.