Added throwOutOfMemoryException().

This commit is contained in:
Markus F.X.J. Oberhumer
2007-05-08 15:28:35 +02:00
parent cb2ff92c2f
commit 40e19293f9
7 changed files with 24 additions and 7 deletions
+1 -5
View File
@@ -192,11 +192,7 @@ void MemBuffer::alloc(unsigned size)
assert((int)total > 0);
unsigned char *p = (unsigned char *) malloc(total);
if (!p)
{
//throw bad_alloc();
throw OutOfMemoryException("out of memory");
//exit(1);
}
throwOutOfMemoryException();
b_size = size;
if (use_mcheck)
{