[#BloombergLP-balst-StackTraceUtil-loadStackTraceFromAddressArray] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balst.adoc[balst]::xref:BloombergLP/balst/StackTraceUtil.adoc[StackTraceUtil]::loadStackTraceFromAddressArray :relfileprefix: ../../../ :mrdocs: Populate the specified `result` with stack‐trace information from the stack, described by the specified array of `addresses` of length `numAddresses`. Optionally specify `demanglingPreferredFlag` to indicate whether or not to attempt to perform demangling, however, demangling is always performed on the Windows platform and never performed on Solaris using the CC compiler regardless of the value of `demanglingPreferredFlag`. If `demanglingPreferredFlag` is not specified, demangling is performed on those platforms that support it. Return 0 on success, and a non‐zero value otherwise. Any frames previously contained in the stack‐trace object are discarded. The behavior is undefined unless `addresses` contains at least `numAddresses` addresses. Note that the return addresses from the stack can be obtained by calling `bsls::StackAddressUtil::getStackAddresses`, and that demangling sometimes involves calling `malloc`. == Synopsis Declared in `<balst_stacktraceutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int loadStackTraceFromAddressArray( xref:BloombergLP/balst/StackTrace.adoc[StackTrace]* result, void const const* addresses[], int numAddresses, bool demanglingPreferredFlag = true); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#