395{
396#ifdef __DCL_DEBUG
400 );
402#endif
403
408
409#ifdef __DCL_DEBUG
411 filename = filename.left(filename.lastIndexOf(L'.')) + L".dump.txt";
412 try {
413
414 __debugFileOutput =
415 new XFileWriter(filename, false, new UTF8Encoder());
416 }
417 catch(IOException* e) {
419 L"Warning! dump file create fail. [%ls]: [%ls]\n",
420 filename.data(),
422 );
424 }
425#endif
426
427#ifdef __DCL_DEBUG
428 ReportErrorWriter output(
430 hErrorReport,
431 __debugFileOutput
432 );
433
434 Writer* oldOutput =
435 DCLDebugSetThreadReport(
437 &output
438 );
439
440#else
441 ReportErrorWriter output(
443 hErrorReport,
445 );
446#endif
447
449 try {
453 }
454 catch (Exception* _e) {
458 }
459
460#ifdef __DCL_DEBUG
461 DCLDebugSetThreadReport(
463 oldOutput
464 );
465
466 if (!result && __debugFileOutput) {
467 delete __debugFileOutput;
468 __debugFileOutput =
NULL;
469 }
470#endif
471
472 return result;
473}
#define __DCL_ASSERT(expr)
virtual void onInitialize() __DCL_THROWS1(Exception *)
const wchar_t * __configPath
const wchar_t * __tempPath
virtual String toString() const
const wchar_t * pszConfigPath
const DCL_HTTP_SERVER_API * pSAPI
const wchar_t * pszModuleName
const wchar_t * pszTempPath