Another Ignorant Question


#1

in the shutdown method of the example project what is the purpose of the line:

if (helloWorldWindow != 0) delete helloWorldWindow;

?

doesn’t all the memory get freed when the application is quit anyway?


#2

what!? You should never ever leave any objects in memory at shutdown - otherwise you’ll never know when there’s a real memory leak!


#3

how would you be able to tell if there’s a memory leak either way?


#4

In windows it dumps out any unfreed memory before it quits. Check out the juce_UseDebuggingNewOperator macro


#5