public class SoErrorStack extends SoError
SoErrorStack
is used to obtain and/or report the program callstack.
The post()
method gets the actual callstack and calls a custom callback, if one is defined, else it dumps the callstack using SoDebugError
.
It is also possible to allow SoStackError to automaticaly report the callstack, when a signal is reported by the system, by setting OIV_DEBUG_STACKERROR to 1.
See also:
Modifier and Type | Class and Description |
---|---|
static interface |
SoErrorStack.Handler |
static class |
SoErrorStack.StackFrame
This struture contains the description of a stack frame.
|
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getStack()
This function returns a decoded version of the getStackFrames() function.
|
static void |
post()
Posts the current callstack to the application callback or to
SoDebugError if the custom callback was not specified. |
static void |
setHandlerCallback(SoErrorStack.Handler h)
Sets the handler for SoErrorStack class.
|
getDebugString, post, setHandlerCallback
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public static void setHandlerCallback(SoErrorStack.Handler h)
public java.lang.String getStack()
public static void post()
SoDebugError
if the custom callback was not specified.Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com