SoMemoryError - Online Linux Manual PageSection : 3
Updated : Mon Jan 25 2021
Source : Version 2.5.0
Note : Coin
NAMESoMemoryError − The SoMemoryError class is used to inform of problems with memory allocation.
SYNOPSIS
#include <Inventor/errors/SoMemoryError.h> Inherits SoError.
Public Member Functionsvirtual SoType getTypeId (void) const
Static Public Member Functionsstatic void setHandlerCallback (SoErrorCB *const callback, void *const data)
static SoErrorCB * getHandlerCallback (void)
static void * getHandlerData (void)
static SoType getClassTypeId (void)
static void post (const char *const whatWasAllocated)
static void initClass (void)
Protected Member Functionsvirtual SoErrorCBPtr getHandler (void *&data) const
Additional Inherited Members
Detailed DescriptionThe SoMemoryError class is used to inform of problems with memory allocation. Modern operating systems takes care of handling most out of memory conditions for you, but in certain situations it can be wise to do some manual checking and intervention. This class is provided as an aid to help out in these situations. The basic design of the Coin library is to pass on the responsibility for handling failed attempts at memory allocation to the application programmer. If you want to detect and take care of these, you should compile Coin with the C++ exception throwing on and wrap your code within try{} and catch{} blocks. The most you can do if you get a failed allocation is typically to notify the user and then exit the application, though, and this is something most operating systems will do for you, so you probably need not consider this at all. So, where does the SoMemoryError class come in handy? There are certain things which could happen within the library which are best taken care of by internally handling failed attempts at memory allocation. An example: the user tries to load a model file which contains a filename pointer to a huge bitmapfile with a texture map. The end-user's system does not provide enough memory to load the file and prepare the texture image for rendering, though. This is a case where it is possible to just emit a warning and continue. The warning will then be passed through this class. Note that SoMemoryError is probably not of much use to the application programmer.
Member Function Documentation
SoType SoMemoryError::getTypeId (void) const [virtual]This method returns the SoType of a particular object instance. See also getClassTypeId() Reimplemented from SoError.
void SoMemoryError::post (const char *const whatWasAllocated) [static]Posts a warning about a failed memory allocation. whatWasAllocated should contain a description of what we tried to allocate. References SoError::appendToDebugString(), SoError::handleError(), and SoError::setDebugString().
SoErrorCB * SoMemoryError::getHandler (void *& data) const [protected], [virtual]This is just a convenience wrapper around the getHandlerCallback() and getHandlerData() methods. Reimplemented from SoError.
AuthorGenerated automatically by Doxygen for Coin from the source code. 0
Johanes Gumabo
Data Size : 12,837 byte
man-SoMemoryError.3coin2Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 189,197
Visitor ID : :
Visitor IP : 3.133.153.110 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.