I just got a copy of Boundschecker and it’s reporting a small leak on a simple command line program. It’s not a memory leak, but what Boundschecker classifies as a resource leak.
I just grabbed the latest from svn (18-nov about 1:45p).
The resource that’s leaking is sleepEvent from juce_win32_Threads.cpp. I think we need a CloseHandle(sleepEvent) somewhere, or perhaps use the WaitableEvent class…
Maybe shutdown equivalents of juce_initialiseThreadEvents and SystemStats::initialiseStats that get called from shutdownJuce_NonGUI?
The relevant parts of my code are:
int main ( int argc, char *argv )
/ do something */
BoundsChecker is unhappy about lots of other stuff but this seems like a simple one. I’m going through the hello example now so I may have more to ask about.
Are you in general interested in cleaning up stuff like this even though the OS likely deals with it when programs shut down?
Thanks for your help.