#include "stdafx.h" #ifdef _DEBUG #ifdef TR_LEAKS #ifdef COMPILER_MSVC int _lucene_BlockStop; #define CRTDBG_MAP_ALLOC #include #include #endif #endif #endif int main( int_t argc, char** argv ){ //Dumper Debug #ifdef TR_LEAKS #ifdef COMPILER_MSVC #ifdef _DEBUG _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );//| _CRTDBG_CHECK_ALWAYS_DF | _CRTDBG_CHECK_CRT_DF ); #endif #endif #endif long_t str = lucene::util::Misc::currentTimeMillis(); try{ _cout << _T("\n CLucene tests - make sure you have an index created called 'index'...")<