My environment is: OS: Windows XP,VC6(sp4),db-4.5.20 The sample code is { Db *pDb=new Db(NULL,0); delete pDb; //Here will catch one heap error. } I don't konw I use it in wrong way or I need compile file with special macro definition.