2010年8月30日 星期一

2010年8月16日 星期一

Bulid celt under mingw32

CPPFLAGS="-fno-common" LDFLAGS="-no-undefined" ./configure
make
make install

2010年8月3日 星期二

Debug Memory Leak in VC

#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>

_CrtMemState old, new, diff;

_CrtMemCheckpoint(&old);
....
_CrtMemCheckpoint(&new);

_CrtMemDifference(&diff, &old, &new);
_CrtMemDumpStatistics(&diff);

_CrtDumpMemoryLeaks();