The OpenD Programming Language

etc.linux.memoryerror

Handle page protection errors using D errors (exceptions) or asserts.

Members

Classes

InvalidPointerError
class InvalidPointerError

Thrown on POSIX systems when a SIGSEGV signal is received.

NullPointerError
class NullPointerError

Thrown on null pointer dereferences.

Functions

deregisterMemoryAssertHandler
bool deregisterMemoryAssertHandler()

Revert the memory error handler back to the one from before calling registerMemoryAssertHandler().

deregisterMemoryErrorHandler
bool deregisterMemoryErrorHandler()

Revert the memory error handler back to the one from before calling registerMemoryErrorHandler().

registerMemoryAssertHandler
bool registerMemoryAssertHandler()

Registers a signal handler for SIGSEGV that turns them into an assertion failure, providing a more descriptive error message and stack trace if the program is compiled with debug info and D assertions (as opposed to C assertions).

registerMemoryErrorHandler
bool registerMemoryErrorHandler()

Register memory error handler, store the old handler.

Meta

License

Distributed under the Boost Software License 1.0. (See accompanying file LICENSE_1_0.txt)

Authors

Amaury SECHET, FeepingCreature, Vladimir Panteleev