none
adding a tracelistener to xmlread app of large file -- causes inexplicable exception/dump output! RRS feed

  • Question

  • Update:

    The issue is resolved ..  for further info please see here.

     

    Hello,

     

    When adding this line to my code (a class library with VS 2008):

    Trace.Listeners.Add(new TextWriterTraceListener(@"C:\AppLog.txt"));

     

    I get the exception/stack trace below. 

    Its fairly large, but just scroll downm below the text of the mail i writing here, and you will see it. 

     

    Anybody with any idee about how to go about debugging or preventing it? 

     

    Well one way is to simply comment out, the line adding listener.   But why should adding the listener create this exception situation?  And, at all, what is it about???

     

    Everything goes well when I do XmlRead from a small file, - yes, even if I  add the listener.

    But as soon as the file is large (174.638KB) and i add the listener, - I get the dump below.

    Without adding the listener, the XmlRead of this large file goes fine.

     

    I made a console app in VS 2008, which uses a class library project (in the same solution).  

    And the class library does the XmlRead.

    There is an xml schema attached to the Reader, but i was seeing the error also before doing schema validation.

     

    Any ideas are welcome, since i am clueless.

     

    Regards,

    Paul S.

     

    Dump/exception output/stack trace - the exception is pretty long so i include only the first and last few hundred lines of the file:

    UIMonster.exeborisUI\AnnotSP\src\CineCtrler.cpp338ANNOTSP10080CCineCtrler::cineBarEvent - Cinestate retrieval timeout dropped. (benign message)Unknownacqc.exeborisSpath\AcqC\acqHim\acqHimAdue.cpp603ACQC3482Fault: scanhead disconnect while scanning.acqHimErrorUnsolicited event received errorCAcqHimAduegetShDisconnectWhileScanningAdueeha.exeborisApps\eha\src\ehaAdueCallbackInterfaceImp.cpp289EHA3783Received scanhead disconect while scanning ADUE.UnknownJobManager.exeborisDMM\JobManager\JobMgrDeviceQuery.cpp1125DMM085COMCALL macro detected that function returned failed HRESULTUnknown0x800040050x710Windows: Unspecified error

    platformMonitor.exeborisPlatform\pitk\src\pitkXmlDom.cpp250PITK11DomLoadfile:///E:/host/data/log/ehSavedSequenceId.xml00XML document must have a top level element.

     

     

       Host Process Name    ProcId  ParentId ThreadCnt    RefCnt   BasePri

    **********************************************************************

        [System Process]         0         0         4         0         0

                  System         4         0        53         0         8

                smss.exe       648         4         3         0        11

               csrss.exe       696       648         9         0        13

            winlogon.exe       780       648         6         0         8

            services.exe       844       780        16         0         8

               lsass.exe       852       780        18         0         9

             svchost.exe      1000       844         7         0         8

               vptrs.exe      1208       844         9         0        24

             svchost.exe      1236       844        15         0         8

             svchost.exe      1276       844         3         0         8

               vptrs.exe      1388      1332         5         0         8

             spoolsv.exe      1436       844         6         0         8

          borisShell.exe      1512       780         1         0         8

     platformMonitor.exe      1528      1512         2         0        24

     

    Registers

    EAX=0x00000001  EBX=0x00000001  ECX=0x663ea12c  EDX=0x00000000  ESI=0x655b5c74

    EDI=0x00000000  EBP=0x0012ea78  ESP=0x0012e748  EIP=0x7ffe0304  FLG=0x00000202

     CS=0x001b  DS=0x0023  SS=0x0023  ES=0x0023  FS=0x003b  GS=0x0000

     

    Stack:

    Logical Symbolic Filename Linenumber (as available)

      0x7ffe0304:0x0012ea78  0x141378:0x00000045

    [ errhndl.dll ]

      0x66374235:0x0012ea98  eh::CEhStackTrace::walkStack+0x0000001d

    [ logrec.dll ]

      0x678ad268:0x0012eee8  eh::CEhStackContextLogRecord::CEhStackContextLogRecord+0x00000cde

    [ pitk.dll ]

      0x65584679:0x0012f4c4  pitk::CPitkXmlDomDoc::loadFile+0x00000231

      0x6558459a:0x0012f514  pitk::CPitkXmlDomDoc::loadFile+0x00000152

      0x655843c9:0x0012f544  pitk::CPitkXmlDomDoc::CPitkXmlDomDoc+0x00000049

    [ platformMonitor.exe ]

      0x004207dd:0x0012f904  0x400000:0x000207dd

      0x00420e8f:0x0012ff4c  0x400000:0x00020e8f

      0x004335dd:0x0012ffc0  0x400000:0x000335dd

    [ kernel32.dll ]

      0x77e814c7:0x0012fff0  GetCurrentDirectoryW+0x00000044

    ***complete stack trace***

    11borisPlatform\pitk\src\pitkXmlDom.cppsacs.exeborisServices\common\logServ\src\lsLogger.cpp2210LS701System Monitor log StartTime record with the following DateTime missing matching StopTime record.Unknown2005-12-08 06:35:44.153229797-0800platformMonitor.exeborisPlatform\pitk\src\pitkXmlDom.cpp250PITK11DomLoadfile:///E:/host/data/log/ehSavedSequenceId.xml00XML document must have a top level element.

     

     

       Host Process Name    ProcId  ParentId ThreadCnt    RefCnt   BasePri

    **********************************************************************

        [System Process]         0         0         4         0         0

                  System         4         0        51         0         8

                smss.exe       648         4         3         0        11

               csrss.exe       696       648         9         0        13

            winlogon.exe       720       648         6         0         8

            services.exe       780       720        15         0         8

               lsass.exe       788       720        18         0         9

             svchost.exe       928       780         7         0         8

               vptrs.exe       984       780         9         0        24

             svchost.exe      1028       780        15         0         8

             svchost.exe      1068       780         3         0         8

               vptrs.exe      1100      1040         5         0         8

          borisShell.exe      1152       720         1         0         8

             spoolsv.exe      1176       780         6         0         8

     platformMonitor.exe      1232      1152         2         0        24

     

    Registers

    EAX=0x00000001  EBX=0x00000001  ECX=0x663ea12c  EDX=0x00000000  ESI=0x655b5c74

    EDI=0x00000000  EBP=0x0012ea78  ESP=0x0012e748  EIP=0x7ffe0304  FLG=0x00000202

     CS=0x001b  DS=0x0023  SS=0x0023  ES=0x0023  FS=0x003b  GS=0x0000

     

    Stack:

    Logical Symbolic Filename Linenumber (as available)

      0x7ffe0304:0x0012ea78  0x141378:0x00000045

    [ errhndl.dll ]

      0x66374235:0x0012ea98  eh::CEhStackTrace::walkStack+0x0000001d

    [ logrec.dll ]

      0x678ad268:0x0012eee8  eh::CEhStackContextLogRecord::CEhStackContextLogRecord+0x00000cde

    [ pitk.dll ]

      0x65584679:0x0012f4c4  pitk::CPitkXmlDomDoc::loadFile+0x00000231

      0x6558459a:0x0012f514  pitk::CPitkXmlDomDoc::loadFile+0x00000152

      0x655843c9:0x0012f544  pitk::CPitkXmlDomDoc::CPitkXmlDomDoc+0x00000049

    [ platformMonitor.exe ]

      0x004207dd:0x0012f904  0x400000:0x000207dd

      0x00420e8f:0x0012ff4c  0x400000:0x00020e8f

      0x004335dd:0x0012ffc0  0x400000:0x000335dd

    [ kernel32.dll ]

      0x77e814c7:0x0012fff0  GetCurrentDirectoryW+0x00000044

    ***complete stack trace***

    11borisPlatform\pitk\src\pitkXmlDom.cppUIMonster.exeborisUI\AnnotSP\src\CineCtrler.cpp338ANNOTSP1005CCineCtrler::cineBarEvent - Cinestate retrieval timeout dropped. (benign message)UnknownplatformMonitor.exeborisPlatform\pitk\src\pitkXmlDom.cpp250PITK11DomLoadfile:///E:/host/data/log/ehSavedSequenceId.xml00XML document must have a top level element.

     

     

       Host Process Name    ProcId  ParentId ThreadCnt    RefCnt   BasePri

    **********************************************************************

        [System Process]         0         0         4         0         0

                  System         4         0        51         0         8

                smss.exe       648         4         3         0        11

               csrss.exe       696       648         9         0        13

            winlogon.exe       780       648         6         0         8

            services.exe       832       780        16         0         8

               lsass.exe       840       780        18         0         9

             svchost.exe       996       832         7         0         8

               vptrs.exe      1204       832         9         0        24

             svchost.exe      1232       832        15         0         8

             svchost.exe      1268       832         3         0         8

               vptrs.exe      1380      1356         5         0         8

             spoolsv.exe      1428       832         6         0         8

          borisShell.exe      1500       780         1         0         8

     platformMonitor.exe      1512      1500         2         0        24

                 cmd.exe      1520      1484         1         0         8

                 net.exe      1528      1520         1         0         8

                net1.exe      1536      1528         1         0         8

     

    Registers

    EAX=0x00000001  EBX=0x00000001  ECX=0x663ea12c  EDX=0x00000000  ESI=0x655b5c74

    EDI=0x00000000  EBP=0x0012ea78  ESP=0x0012e748  EIP=0x7ffe0304  FLG=0x00000202

     CS=0x001b  DS=0x0023  SS=0x0023  ES=0x0023  FS=0x003b  GS=0x0000

     

    Stack:

    Logical Symbolic Filename Linenumber (as available)

      0x7ffe0304:0x0012ea78  0x141378:0x00000045

    [ errhndl.dll ]

      0x66374235:0x0012ea98  eh::CEhStackTrace::walkStack+0x0000001d

    [ logrec.dll ]

      0x678ad268:0x0012eee8  eh::CEhStackContextLogRecord::CEhStackContextLogRecord+0x00000cde

    [ pitk.dll ]

      0x65584679:0x0012f4c4  pitk::CPitkXmlDomDoc::loadFile+0x00000231

      0x6558459a:0x0012f514  pitk::CPitkXmlDomDoc::loadFile+0x00000152

      0x655843c9:0x0012f544  pitk::CPitkXmlDomDoc::CPitkXmlDomDoc+0x00000049

    [ platformMonitor.exe ]

      0x004207dd:0x0012f904  0x400000:0x000207dd

      0x00420e8f:0x0012ff4c  0x400000:0x00020e8f

      0x004335dd:0x0012ffc0  0x400000:0x000335dd

    [ kernel32.dll ]

      0x77e814c7:0x0012fff0  GetCurrentDirectoryW+0x00000044

    ***complete stack trace***

     

    and now the last few hundred lines:

     

     

    551borisPlatform\pitk\src\lrEhSupport.cppsacs.exeborisServices\common\fms\src\fmsGarbageCollection.cpp258FMS557File(s) listed in the fms file map created file, could not be deleted.UnknownFPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051204233833933.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- FPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051204235813594.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- FPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051205064151419.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- FPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051205064153310.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- platformMonitor.exeborisPlatform\monitor\src\domainInitializer.cpp1010PLATFORM4359Domain failed to respond.  No more attempts will be made to monitor this domain!UnknownSCAsacs.exeborisServices\common\fms\src\fmsGarbageCollection.cpp258FMS560File(s) listed in the fms file map created file, could not be deleted.UnknownFPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051205074906508.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- FPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051205081303698.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- sacs.exeborisServices\common\fms\src\fmsGarbageCollection.cpp258FMS563File(s) listed in the fms file map created file, could not be deleted.UnknownFPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051205111027831.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- FPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051205112201171.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- FPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051205115732837.xml  LastError: 2  Message: The system cannot find the file specified.

     --- sacs.exeborisServices\common\fms\src\fmsGarbageCollection.cpp258FMS566File(s) listed in the fms file map created file, could not be deleted.UnknownFPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051205131257120.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- FPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051205131438951.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- sacs.exeborisServices\common\fms\src\fmsGarbageCollection.cpp258FMS568File(s) listed in the fms file map created file, could not be deleted.UnknownFPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051205133452166.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- FPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051205134117754.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- acqc.exeborisSpath\AcqC\acqHim\acqHimAdue.cpp603ACQC3470Fault: scanhead disconnect while scanning.acqHimErrorUnsolicited event received errorCAcqHimAduegetShDisconnectWhileScanningAdueeha.exeborisApps\eha\src\ehaAdueCallbackInterfaceImp.cpp289EHA3771Received scanhead disconect while scanning ADUE.Unknownsacs.exeborisServices\common\fms\src\fmsGarbageCollection.cpp258FMS572File(s) listed in the fms file map created file, could not be deleted.UnknownFPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051205150638300.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- FPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051205153250550.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- FPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051206063529032.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- UIOgre.exeborisUI\AppUI\AppUIDlgs\appuiConnectivitySink\appuiExamDataMgr_i.cpp2158APPUI15774CExamDataMgr_i:Tongue Tiedtop - Wait for thread to terminate gracefully failed (benign message)UnknownUIOgre.exeborisUI\AppUI\AppUIDlgs\appuiConnectivitySink\appuiExamDataMgr.cpp143APPUI275CExamDataMgr:Tongue TiedtopThread - Caught exception: CEhExceptionAnticipatedFault when stopping CExamDataMgr thread!UnknownUIOgre.exeborisPlatform\pitk\src\pitkThread.cpp242PITK1276CPitkThread:Big SmileTOR: Warning: Killing an active thread - Should be avoided by waiting for/having the thread exit in a controlled mannerUnknown
       Host Process Name    ProcId  ParentId ThreadCnt    RefCnt   BasePri
    **********************************************************************
        [System Process]         0         0         4         0         0
                  System         4         0        70         0         8
                smss.exe       648         4         3         0        11
               csrss.exe       696       648        11         0        13
            winlogon.exe       736       648         6         0         8
            services.exe       800       736        20         0         9
               lsass.exe       808       736        15         0         9
             svchost.exe       948       800         9         0         8
               vptrs.exe      1004       800         7         0        24
             svchost.exe      1032       800        49         0         8
             svchost.exe      1072       800         3         0         8
               vptrs.exe      1132      1124         4         0         8
             spoolsv.exe      1180       800        12         0         8
          borisShell.exe      1252       736         1         0         8
     platformMonitor.exe      1260      1252         7         0        24
       FakeShellTray.exe      1368      1260         1         0         8
                 alg.exe      1428       800         6         0         8
             btwdins.exe      1456       800         3         0         8
            inetinfo.exe      1492       800        18         0         8
             nvsvc32.exe      1568       800         3         0         8
             svchost.exe      1672       800         5         0         8
             dmadmin.exe      1980       800         7         0         8
             dllhost.exe       672       800        15         0         8
               msdtc.exe      1856       800        27         0         8
                sacs.exe      2280      1260         3         0         8
                 eha.exe      2216      1260         3         0        24
              BTTray.exe      2888      1260         6         0         8
            sqlservr.exe      2904       800        31         0         8
       BTStackServer.exe      3636       948         7         0         8
            sqlagent.EXE      1284       800         7         0         8
                 dms.exe       436      1260         6         0        24
    vdbBackgroundServer.exe      4088      1260         2         0         8
           uiMonster.exe      3748      1260        20         0        24
          peripheral.exe      3272      1260         5         0         8
       GeminiControl.exe      2252      1260         3         0         8
                 usi.exe      3088      1260         6         0         8
           fsService.exe      2756       800         3         0         8
           ImmServer.exe      2612      1260         3         0        24
                sipc.exe      1416      1260        10         0        24
                 usi.exe      1064      1260         6         0        24
           sysadmApp.exe      2504      1260         3         0        24
            analysis.exe      1376      1260         8         0        24
          JobManager.exe      3804       800        28         0         4
       GeminiControl.exe      2940      1260         4         0        24
      aprImageServer.exe      3724      1260         2         0         8
           aprServer.exe      3720      1260         4         0        24
           dmmServer.exe      3672      1260        10         0         8
                  sm.exe       964      1260         5         0        24
                acqc.exe      1868      1260         5         0        24
                qlab.exe      3256      1260         4         0         8
              UIOgre.exe       704      1260        27         0        24
           SIPWorker.exe      3588      1416         1         0        10

    Registers
    EAX=0x00000001  EBX=0x00000001  ECX=0x663ea12c  EDX=0x00000000  ESI=0x65dc6200
    EDI=0x0a279e68  EBP=0x01e6f19c  ESP=0x01e6ee6c  EIP=0x7ffe0304  FLG=0x00000202
     CS=0x001b  DS=0x0023  SS=0x0023  ES=0x0023  FS=0x003b  GS=0x0000

    Stack:
    Logical Symbolic Filename Linenumber (as available)
      0x7ffe0304:0x01e6f19c  0x00a0:0x01e6dc74
    [ errhndl.dll ]
      0x66374235:0x01e6f1bc  eh::CEhStackTrace::walkStack+0x0000001d
    [ pitk.dll ]
      0x6557117a:0x01e6f5f0  pitk::log+0x000001ff
      0x65570f2b:0x01e6f61c  pitk::log+0x0000001e
      0x6557f06a:0x01e6f664  pitk::CPitkThread::resume+0x000000e8
      0x6557eee1:0x01e6f6a0  pitk::CPitkThread::~CPitkThread+0x0000002e
    [ appuiConnectivitySink.DLL ]
      0x676250e8:0x01e6f704  appuiconsink::CExamDataMgr::CExamDataMgr+0x000019ee
      0x67630fca:0x01e6f710  appuiconsink::CExamDataMgr::CExamDataMgr+0x0000d8d0
      0x67622c65:0x01e6f75c  appuiconsink::CExamDataMgr::~CExamDataMgr+0x00000046
      0x67623776:0x01e6f768  appuiconsink::CExamDataMgr::CExamDataMgr+0x0000007c
      0x67623cc1:0x01e6f7a4  appuiconsink::CExamDataMgr::CExamDataMgr+0x000005c7
      0x67623c5a:0x01e6f7c0  appuiconsink::CExamDataMgr::CExamDataMgr+0x00000560
      0x67622c07:0x01e6f7fc  appuiconsink::CExamDataMgr::release+0x0000005c
    [ AppUIDll.dll ]
      0x624e62c7:0x01e6fb80  CAppUIMain:Surpriseperator=+0x0000394b
      0x624e5458:0x01e6fd98  CAppUIMain:Surpriseperator=+0x00002adc
      0x624e4ca6:0x01e6fe5c  CAppUIMain:Surpriseperator=+0x0000232a
    [ MFC42u.DLL ]
      0x72844529:0x00b2fec4  Ordinal5711+0x00000040
    ***complete stack trace***
    7612borisPlatform\pitk\src\pitkThread.cppsacs.exeborisServices\common\fms\src\fmsGarbageCollection.cpp258FMS577File(s) listed in the fms file map created file, could not be deleted.UnknownFPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051206080719767.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- FPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051206085604732.xml  LastError: 2  Message: The system cannot find the file specified.

     

     

     --- sacs.exeborisServices\common\fms\src\fmsGarbageCollection.cpp258FMS579File(s) listed in the fms file map created file, could not be deleted.UnknownFPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051206105429779.xml  LastError: 2  Message: The system cannot find the file specified.

     

    sacs.exeborisServices\common\fms\src\fmsGarbageCollection.cpp258FMS581File(s) listed in the fms file map created file, could not be deleted.UnknownFPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051206111545887.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- FPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051206111614552.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- sacs.exeborisServices\common\fms\src\fmsGarbageCollection.cpp258FMS583File(s) listed in the fms file map created file, could not be deleted.UnknownFPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051206111930711.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- FPFN: E:\interim\dmm\dmm\dmmAnalysisDataxml20051206112441654.xml  LastError: 2  Message: The system cannot find the file specified.

     

     --- acqc.exeborisSpath\AcqC\acqHim\acqHimAdue.cpp603ACQC3485Fault: scanhead disconnect while scanning.acqHimErrorUnsolicited event received errorCAcqHimAduegetShDisconnectWhileScanningAdueeha.exeborisApps\eha\src\ehaAdueCallbackInterfaceImp.cpp289EHA3786Received scanhead disconect while scanning ADUE.Unknownacqc.exeborisSpath\AcqC\acqHim\acqHimAdue.cpp603ACQC3487Fault: scanhead disconnect while scanning.acqHimErrorUnsolicited event received errorCAcqHimAduegetShDisconnectWhileScanningAdueeha.exeborisApps\eha\src\ehaAdueCallbackInterfaceImp.cpp289EHA3788Received scanhead disconect while scanning ADUE.Unknown

    Thursday, April 24, 2008 2:53 PM

Answers

  • Schwartzenberg,

     

    Based on your post, the exception is quite long but without an exception name. If you have notice the exception name and type, you can try to search in MSDN documents for the possible reasons. I would like to provide you the suggestions as follows:

     

    1. Please check the app.config file for the log file size (maximumFileSize, bufferSize) of TraceListener. Making the changes in the config file allows you to make changes to an existing application’s trace without the need to rebuild it. It does however require you to restart the application as the config file is only loaded once as startup. If you want to make dynamic changes while your application run — you would have to do it through the code by providing your own hooks for dynamic changes.

     

    2. Use both Debug and Trace classes to provide information about the performance of an application either during application development, or after delopyment to production. Each Listener in the Listener collection receives any output that the Debug class generates. Use the TextWriterTraceListener class to define Listener objects. You can specify the target for a TextWriterTraceListener class through its constructor. For the example, please read the KB 815788 article.

     

    3. There is standard tracing step by step in BCL blog and the related Unhandled Exceptions and Tracing in the .NET Framework 2.0

     

    In addition, if you are using .NET Framework 3.5, there is a new TraceListener in Orcas: EventSchemaTraceListener.

     

    Hope that can provide you some idea.

    Tuesday, April 29, 2008 6:38 AM

All replies

  • Schwartzenberg,

     

    Based on your post, the exception is quite long but without an exception name. If you have notice the exception name and type, you can try to search in MSDN documents for the possible reasons. I would like to provide you the suggestions as follows:

     

    1. Please check the app.config file for the log file size (maximumFileSize, bufferSize) of TraceListener. Making the changes in the config file allows you to make changes to an existing application’s trace without the need to rebuild it. It does however require you to restart the application as the config file is only loaded once as startup. If you want to make dynamic changes while your application run — you would have to do it through the code by providing your own hooks for dynamic changes.

     

    2. Use both Debug and Trace classes to provide information about the performance of an application either during application development, or after delopyment to production. Each Listener in the Listener collection receives any output that the Debug class generates. Use the TextWriterTraceListener class to define Listener objects. You can specify the target for a TextWriterTraceListener class through its constructor. For the example, please read the KB 815788 article.

     

    3. There is standard tracing step by step in BCL blog and the related Unhandled Exceptions and Tracing in the .NET Framework 2.0

     

    In addition, if you are using .NET Framework 3.5, there is a new TraceListener in Orcas: EventSchemaTraceListener.

     

    Hope that can provide you some idea.

    Tuesday, April 29, 2008 6:38 AM
  • Thanks for this answer, Bruno.

     

    I'll update this thread when i return and debug this (hairy) problem.

     

    Regards,

    Paul

     

    Friday, May 9, 2008 2:57 PM
  •  

    EventSchemaTraceListener

    is the one to use.

    it solves the threading problem that output system source code tracing messages into my application code.

     

    EventSchemaTraceListener shows trace in xml format ... how can i do away with the xml formating??

     

    Regards,

    Paul

    Monday, May 26, 2008 9:41 AM
  • Hello Bruno,

     

    I miscalculated this problem.

     

    EventSchemaTraceListener.

     

    Has not resolved the issue.   I followed steps (1) and (2) in your mail.  But the problem

    is more serious.  

     

    I opened at new thread on this problem (please click here).

     

    Concerning your points:

     

    (1)  my app.config has no limitations on maximumFileSize, bufferSize.  I couldnt find my machine.config for the .NET 3.0 or .NET 3.5.  For .NET 2.0 the machine.config also did not have any of the limitations you've named.

    (2)  Your article KB 815788  is more or less a "How to" on trace listening and dosnt resolve anything.

     

    Hope it's ok, i put the issue on a new thread.

     

    Regards,

    Paul

    Monday, May 26, 2008 4:15 PM