--- parser3/src/main/pa_pool.C 2001/11/16 11:03:02 1.41 +++ parser3/src/main/pa_pool.C 2001/11/16 12:38:43 1.44 @@ -4,7 +4,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://paf.design.ru) - $Id: pa_pool.C,v 1.41 2001/11/16 11:03:02 paf Exp $ + $Id: pa_pool.C,v 1.44 2001/11/16 12:38:43 paf Exp $ */ #include "pa_pool.h" @@ -17,7 +17,8 @@ #endif Pool::Pool(void *astorage) : - fstorage(astorage), fcontext(0), ftag(0) + fstorage(astorage), fcontext(0), + ftotal_allocated(0), ftotal_times(0) #ifdef XML , transcoder(0) #endif @@ -36,8 +37,8 @@ Pool::~Pool() { } void Pool::fail_alloc(size_t size) const { - SAPI::die("failed to allocate %u bytes, " - "total allocated %u in %u times", + SAPI::die("out of pool memory: failed to allocate %u bytes, " + "totally allocated on pool: %u in %u times", size, ftotal_allocated, ftotal_times); }