Hi, I have application that does have strange memory leak in Mac OSX 10.6.8 and 10.7.3 but not leaking in Mac OSX 10.5.8. I've used valgrind to figure out where the leak happens and it points to DataReady::DataReadyThread(void*) report below the message. XXXX.... is name of my application.
I've been searching for the dependencies and one of the pieces in the puzzle is that there is much more leaks when to use Fl::wait(0.01) and less leaks when to use Fl::wait(0.1) resulting almost no leaks but valgrind still identifies leaks. ==297== 222,260 bytes in 11,113 blocks are definitely lost in loss record 4,244 of 4,245 ==297== at 0x13CF47: calloc (vg_replace_malloc.c:569) ==297== by 0x5CFC7E: _class_createInstanceFromZone (in /usr/lib/libobjc.A.dylib) ==297== by 0x5CFCC4: _class_createInstance (in /usr/lib/libobjc.A.dylib) ==297== by 0x5C62C7: _objc_rootAllocWithZone (in /usr/lib/libobjc.A.dylib) ==297== by 0x25AD70: +[NSObject allocWithZone:] (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation) ==297== by 0x6BE88D: +[NSAutoreleasePool allocWithZone:] (in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation) ==297== by 0x5C61BB: _objc_rootAlloc (in /usr/lib/libobjc.A.dylib) ==297== by 0x73361: DataReady::DataReadyThread(void*) (in XXXXXXXXX) ==297== by 0x1BB3ED8: _pthread_start (in /usr/lib/system/libsystem_c.dylib) ==297== by 0x1BB76DD: thread_start (in /usr/lib/system/libsystem_c.dylib) ==297== ==297== LEAK SUMMARY: ==297== definitely lost: 235,225 bytes in 11,357 blocks ==297== indirectly lost: 6,440 bytes in 17 blocks ==297== possibly lost: 3,883 bytes in 39 blocks ==297== still reachable: 1,403,803 bytes in 10,153 blocks ==297== suppressed: 0 bytes in 0 blocks ==297== Reachable blocks (those to which a pointer was found) are not shown. ==297== To see them, rerun with: --leak-check=full --show-reachable=yes ==297== ==297== For counts of detected and suppressed errors, rerun with: -v ==297== Use --track-origins=yes to see where uninitialised values come from ==297== ERROR SUMMARY: 28937 errors from 55 contexts (suppressed: 722 from 39) _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

