I have some Memory leaks in my application, so i try to find where they come.
In Hello World Project, if i write:
g.fillAll(Colours::beige); in Paint function instead of GradientBrush gradientBrush (Colours::lightblue, 0, 0,
...
g.drawRect (0, 0, getWidth(), getHeight()); i have memory leaks !!!
Detected memory leaks!
Dumping objects ->
e:\jp\juce_1_13\juce\src\juce_core\text\juce_string.cpp(59) : {122} normal block at 0x0194BA60, 26 bytes long.
Data: < Lucida C> 01 00 00 00 0E 00 00 00 4C 75 63 69 64 61 20 43
e:\jp\juce_1_13\juce\src\juce_core\text\juce_string.cpp(59) : {121} normal block at 0x0194BA10, 17 bytes long.
Data: < Times > 01 00 00 00 05 00 00 00 54 69 6D 65 73 00 CD CD
e:\jp\juce_1_13\juce\src\juce_core\text\juce_string.cpp(59) : {120} normal block at 0x0194B9C0, 19 bytes long.
Data: < Verdana > 01 00 00 00 07 00 00 00 56 65 72 64 61 6E 61 00
Object dump complete.
And in another projects all my class have memory leaks + all class i use (tabbed component, textbutton, …)
With old version, i didn’t notice memory leaks, but now :shock:
so, is there a parameter or anything else i can verify ???
I test with a old demo project, there’s no Memory leak. If i put the HelloWorld file in this project (and i delete all other files) i have memory leaks
Karbon’s right that the leak’s not worth worrying about, but the font names should only leak if the DeletedAtShutdown objects aren’t getting shut down properly, and that’s a bit odd. Might just be something strange about your build because it works ok for me.
There’s a function called clearUpDefaultFontNames() that’s called when the typeface code shuts down and it zaps those strings to avoid the leak showing up, so you could break it there to see if that gets called when you quit.