home *** CD-ROM | disk | FTP | other *** search
- /*
- * CPPErr.cpp
- * $Header: /BoundsChecker/Examples/BUGBNCHX/MAINERR/CPPERR.CPP 3 12/11/96 4:03p Stevea $
- *
- * Description:
- * The C++ Check error functions.
- *
- * Notes:
- * <implementation notes go here>
- *
- ***********************************************************************
- *
- * Nu-Mega Technologies, Inc.
- * P.O. Box 7780
- * Nashua, NH 03060
- *
- * (c) Copyright 1994, 1995 Nu-Mega Technologies, Inc.
- * ALL RIGHTS RESERVED.
- *
- ***********************************************************************
- *
- **********************************************************************/
- #include "stdafx.h"
- #include "CPPErr.h"
-
- // C++ Check - Memory allocation conflict.
- void CPP_MemConflictMallocDelete ( )
- {
- _TRY
- {
- char * pchB = (char*)malloc ( sizeof ( char ) ) ;
- delete pchB ;
- }
- _CATCH
- {
- }
- }
- void CPP_MemConflictNewFree ( )
- {
- _TRY
- {
- char * pchA = new char ;
- free ( pchA ) ;
- }
- _CATCH
- {
- }
- }
-