Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions

void SAPDBMem_RawAllocator::SetBadAllocHandler ( BadAllocHandlers  handler  )  [inherited]

enables the handler to be used when no more memory is available

Parameters:
handler identifies the handler to be used (NO_THROW_HANDLER,THROW_SAPDBMEM_EXECEPTION,THROW_STD_BAD_ALLOC)

Definition at line 2591 of file SAPDBMem_RawAllocator.cpp.

References SAPDBMem_RawAllocator::BadAllocNoThrow(), SAPDBMem_RawAllocator::BadAllocThrowSAPDBMem_BadAlloc(), SAPDBMem_RawAllocator::BadAllocThrowStdBadAlloc(), and SAPDBMem_RawAllocator::m_badAllocFunc.

{
  switch (handler)
  {
  case NO_THROW_HANDLER :
    m_badAllocFunc = BadAllocNoThrow;
    break;
  case THROW_SAPDBMEM_EXECEPTION :
    m_badAllocFunc = BadAllocThrowSAPDBMem_BadAlloc;
    break;
  case THROW_STD_BAD_ALLOC :
    m_badAllocFunc = BadAllocThrowStdBadAlloc;
  }
}


Generated by  Doxygen 1.6.0   Back to index