JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
juce_HeavyweightLeakedObjectDetector.h File Reference

Go to the source code of this file.

Classes

class  juce::HeavyweightLeakedObjectDetector< OwnerClass >
 This class is a useful way of tracking down hard to find memory leaks when the regular LeakedObjectDetector isn't enough. More...
 

Namespaces

namespace  juce
 JUCE Namespace.
 

Macros

#define JUCE_HEAVYWEIGHT_LEAK_DETECTOR(OwnerClass)
 This macro lets you embed a heavyweight leak-detecting object inside a class.
 

Macro Definition Documentation

◆ JUCE_HEAVYWEIGHT_LEAK_DETECTOR

#define JUCE_HEAVYWEIGHT_LEAK_DETECTOR (   OwnerClass)

This macro lets you embed a heavyweight leak-detecting object inside a class.

To use it, simply declare a JUCE_HEAVYWEIGHT_LEAK_DETECTOR (YourClassName) inside a private section of the class declaration. E.g.

class MyClass
{
public:
MyClass();
void blahBlah();
private:
};
#define JUCE_HEAVYWEIGHT_LEAK_DETECTOR(OwnerClass)
This macro lets you embed a heavyweight leak-detecting object inside a class.

NB: you should only use this when you really need to track down a tricky memory leak, and should never leave one of these inside a class!

See also
HeavyweightLeakedObjectDetector, JUCE_LEAK_DETECTOR, LeakedObjectDetector

Definition at line 135 of file juce_HeavyweightLeakedObjectDetector.h.