| title |
_query_new_handler | Microsoft Docs |
| ms.custom |
|
| ms.date |
11/04/2016 |
| ms.reviewer |
|
| ms.suite |
|
| ms.technology |
|
| ms.tgt_pltfrm |
|
| ms.topic |
article |
| apiname |
|
| apilocation |
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 |
|
| apitype |
DLLExport |
| f1_keywords |
_query_new_handler |
query_new_handler |
|
| dev_langs |
|
| helpviewer_keywords |
query_new_handler function |
handler routines |
error handling |
_query_new_handler function |
|
| ms.assetid |
9a84b5c3-fe33-4c01-83a0-be87dc3ec518 |
| caps.latest.revision |
10 |
| author |
corob-msft |
| ms.author |
corob |
| manager |
ghogen |
| ms.workload |
|
Returns the address of the current new handler routine.
_PNH _query_new_handler(
void
);
Returns the address of the current new handler routine as set by _set_new_handler.
Remarks
The C++ _query_new_handler function returns the address of the current exception-handling function set by the C++ _set_new_handler function. _set_new_handler is used to specify an exception-handling function that is to gain control if the new operator fails to allocate memory. For more information, see the discussion of the new and delete operators in the C++ Language Reference.
| Routine |
Required header |
_query_new_handler |
<new.h> |
For more compatibility information, see Compatibility in the Introduction.
All versions of the C run-time libraries.
Memory Allocation
free