Detect memory violations

In order to see whether data of the active memory objects are not damaged, an appropriate monitoring functionality via exceptions is implemented in Luna. By means of such monitoring may mistake as buffer overflows, accesses via object boundaries, and lack of memory are detected.
See also:exceptions
With the exceptions OutOfBoundsMemory and NilObjectException accesses via memory limits or not generated memory objects are detected.

Example

We generate a memory block and write data into it. If now tries outside the memory block to be written by a programming error in the data memory, this triggers the exception OutOfBoundsMemory. Since omitted for performance reasons without implementation of the exceptions, the monitoring functions, this can lead to damage to the internal memory structure and thus to be cascading serious program errors. The exception allows here to find such memory violations.