Use non-throwing new and delete operator.

Use non-throwing new and delete operator for large memory buffers in order to
avoid exceptions. Output to debug logger if memory allocation fails.
Fixed typo in comment.
Output to debug logger if memory allocation fails.