--- parser3/src/targets/cgi/parser3.C 2001/12/13 10:37:04 1.147 +++ parser3/src/targets/cgi/parser3.C 2001/12/27 19:57:09 1.149 @@ -4,17 +4,14 @@ Copyright(c) 2001 ArtLebedev Group(http://www.artlebedev.com) Author: Alexander Petrosyan (http://paf.design.ru) - $Id: parser3.C,v 1.147 2001/12/13 10:37:04 paf Exp $ + $Id: parser3.C,v 1.149 2001/12/27 19:57:09 paf Exp $ */ #include "pa_config_includes.h" -#ifdef WIN32 -# include -#endif - #if _MSC_VER # include +# include #endif #include "pa_sapi.h" @@ -25,8 +22,8 @@ #include "pa_version.h" #include "pool_storage.h" -#ifdef XML -#include +#ifdef WIN32 +# include #endif //#define DEBUG_POOL_MALLOC @@ -215,17 +212,6 @@ void real_parser_handler( // init socks init_socks(pool); -#ifdef XML - /** - * Initialize Xerces and Xalan. - * - * Should be called only once per process before making - * any other API calls. - */ - //_asm int 3; - XalanInitialize(); -#endif - // init global classes init_methoded_array(pool); // init global variables @@ -435,6 +421,20 @@ int main(int argc, char *argv[]) { #if _MSC_VER _set_new_handler(failed_new); + +#ifdef _DEBUG + // Get current flag + int tmpFlag = _CrtSetDbgFlag( _CRTDBG_REPORT_FLAG ); + + // Turn on leak-checking bit + tmpFlag |= _CRTDBG_LEAK_CHECK_DF; + + // Set flag to the new value + _CrtSetDbgFlag( tmpFlag ); +// _CrtSetBreakAlloc(471); + +#endif + #endif #ifdef HAVE_SET_NEW_HANDLER