Skip to content

Latest commit

 

History

History
89 lines (79 loc) · 2.06 KB

callnewh.md

File metadata and controls

89 lines (79 loc) · 2.06 KB
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic apiname apilocation apitype f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager translation.priority.ht translation.priority.mt
_callnewh | Microsoft Docs
11/04/2016
devlang-cpp
article
_callnewh
msvcrt.dll
msvcr80.dll
msvcr90.dll
msvcr100.dll
msvcr100_clr0400.dll
msvcr110.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr120_clr0400.dll
ucrtbase.dll
api-ms-win-crt-heap-l1-1-0.dll
DLLExport
_callnewh
C++
_callnewh
4dcb73e9-6384-4d12-a973-a8807d4de7a8
3
corob-msft
corob
ghogen
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
ru-ru
zh-cn
zh-tw
cs-cz
pl-pl
pt-br
tr-tr

_callnewh

Calls the currently installed new handler.

Syntax

int _callnewh(  
   size_t size  
   )  

Parameters

size
The amount of memory that the new operator tried to allocate.

Return Value

Value Description
0 Failure: Either no new handler is installed or no new handler is active.
1 Success: The new handler is installed and active. The memory allocation can be retried.

Exceptions

This function throws bad_alloc if the new handler can’t be located.

Remarks

The new handler is called if the new operator fails to successfully allocate memory. The new handler might then initiate some appropriate action, such as freeing memory so that subsequent allocations succeed.

Requirements

Routine Required header
_callnewh internal.h

See Also

_set_new_handler
_set_new_mode