Added explicit error message in case of memory exhaustion

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
Martin Sustrik
2011-02-22 16:23:36 +01:00
parent 98ccff1a24
commit 43e8868875
24 changed files with 61 additions and 52 deletions

View File

@@ -54,7 +54,7 @@ namespace zmq
bufsize (bufsize_)
{
buf = (unsigned char*) malloc (bufsize_);
zmq_assert (buf);
alloc_assert (buf);
}
// The destructor doesn't have to be virtual. It is mad virtual