Freeze in JMDL embedded array allocation

I cannot handle out-of-memory conditions of jmdlEmbeddedDPoint3dArray_setExactBufferSize: instead of returning with a corresponding error value, MicroStation 08.11.07.171 displays the error message "out of memory (swap device may be full)" and then freezes and is no longer operable.

Does anyone have an idea how to circumvent this?