# Reporting memory leaks

**URL:** <https://forum.juce.com/t/reporting-memory-leaks/4112>\
**Category:** General JUCE discussion\
**Created:** [July 21, 2009, 9:10am UTC](https://forum.juce.com/t/reporting-memory-leaks/4112 "2009-07-21T09:10:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![atom](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/atom/32/113_2.png) [@atom](https://forum.juce.com/u/atom)\
**Post date:** [July 21, 2009, 9:10am UTC](https://forum.juce.com/t/reporting-memory-leaks/4112/1 "2009-07-21T09:10:00Z")

</div>

This feature was really nice (since i use VC), is this somehow disable, is there some switch option i need for it to work again, ofcourse the #defines in juce\_config stay the same, i tried both amalgamated and linking to static library, and i get no memory leaks report (and i know they are there).

I use MSVS 2008 V9.0.21022.8 RTM both x86 and x64 platforms.  
i have

```auto
#define JUCE_CHECK_MEMORY_LEAKS 1
#define JUCE_CATCH_UNHANDLED_EXCEPTIONS 1
#define JUCE_STRINGS_ARE_UNICODE 1
```

and i’m doing a DEBUG build.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [July 21, 2009, 10:16am UTC](https://forum.juce.com/t/reporting-memory-leaks/4112/2 "2009-07-21T10:16:20Z")

</div>

It’s still in there, I’ve not touched it… I’m using VC9 and it’s reporting correctly…

Maybe you’ve not got any leaks!

---

<div class="post-metadata">

**Author:** ![atom](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/atom/32/113_2.png) [@atom](https://forum.juce.com/u/atom)\
**Post date:** [July 21, 2009, 4:38pm UTC](https://forum.juce.com/t/reporting-memory-leaks/4112/3 "2009-07-21T16:38:53Z")

</div>

that’s impossible

i’ll try a sample project and leak some memory on purpose.

---

<div class="post-metadata">

**Author:** ![atom](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/atom/32/113_2.png) [@atom](https://forum.juce.com/u/atom)\
**Post date:** [July 22, 2009, 9:17am UTC](https://forum.juce.com/t/reporting-memory-leaks/4112/4 "2009-07-22T09:17:17Z")

</div>

i had to set JUCE\_FORCE\_DEBUG to 1 somehow JUCE\_DEBUG definition in the project didn’t work, dunno why.

anyway it works, thanks.

---

<div class="post-metadata">

**Author:** ![amygdala](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@amygdala](https://forum.juce.com/u/amygdala)\
**Post date:** [August 3, 2009, 9:11am UTC](https://forum.juce.com/t/reporting-memory-leaks/4112/5 "2009-08-03T09:11:26Z")

</div>

Reading this, I suddenly remember that I have had the problem with JUCE\_DEBUG as well… I probably meant to report it, but then - well, didn’t.

- A

---

<div class="post-metadata">

**Author:** ![rebbur](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@rebbur](https://forum.juce.com/u/rebbur)\
**Post date:** [August 3, 2009, 6:45pm UTC](https://forum.juce.com/t/reporting-memory-leaks/4112/6 "2009-08-03T18:45:28Z")

</div>

Yes i had the same issue with JUCE\_DEBUG, in OSX it doesn’t seem to work.
