MemoryLeakIndicator
Loading...
Searching...
No Matches
MemoryLeakIndicator.h File Reference

Header for MemSpy::LeakMap More...

#include <unordered_map>
#include <basetsd.h>
#include <stdarg.h>
#include <windows.h>

Go to the source code of this file.

Classes

class  MemSpy::Trace
 Class to be able to write a TRACE output to the output window also in Releas mode.
Found in http://blog.m-ri.de/index.php/2009/08/09/vs-tippstricks-einfache-ausgabe-mit-trace-auch-in-der-release-version/ More...
 
class  MemSpy::LeakMap
 Class to access forgotten objects in memory.
Inspired by Rainer Grimm and Mouaz Chamieh. More...
 
struct  MemSpy::LeakMap::MemoryItem
 Reference to the instantiated object with file name and line where it was instantiated. More...
 

Namespaces

namespace  MemSpy
 

Macros

#define __mem_leak_indicator_export_dll
 
#define NULL_PTR   NULL
 

Typedefs

typedef bool MemSpy::TbExceptionMode
 
typedef int MemSpy::TiOutput
 

Enumerations

enum  MemSpy::SeekMode { MemSpy::START , MemSpy::NEXT , MemSpy::CURRENT }
 

Functions

__mem_leak_indicator_export_dll MemSpy::LeakMapMemSpy::activateMemoryMonitoring (MemSpy::TbExceptionMode bExceptionMode=MemSpy::THROW)
 
void __mem_leak_indicator_export_dll MemSpy::finishMemoryMonitoring (MemSpy::TiOutput iOutput=MemSpy::OUTPUT_CONSOLE)
 

Variables

const TbExceptionMode MemSpy::NOTHROW = false
 
const TbExceptionMode MemSpy::THROW = true
 
const TiOutput MemSpy::OUTPUT_NON = 0
 
const TiOutput MemSpy::OUTPUT_CONSOLE = 1
 
const TiOutput MemSpy::OUTPUT_TRACE = 2
 

Detailed Description

Header for MemSpy::LeakMap

Author
Helmut Jakoby

Terms of License

This file is part of the MemoryLeakIndicator module.

MemoryLeakIndicator is free software:

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

GNU Affero General Public License Usage
You can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. Please review the following information to ensure the GNU Affero General Public License requirements will be met: https://www.gnu.org/licenses/agpl-3.0.en.html .

Macro Definition Documentation

◆ __mem_leak_indicator_export_dll

#define __mem_leak_indicator_export_dll

◆ NULL_PTR

#define NULL_PTR   NULL

In Visual Studio extend the "Properties::C/C++::All options::Additional options:" with "/Zc:__cplusplus"!