#5 EntLibLogger Memory Leak

closed
nobody
Parser (14)
5
2007-11-07
2007-05-24
DaBuddhaMan
No

There is a huge leak in the EntLibLogger class.

A TraceSwitch class is created every time the WriteLog() function is called, which results in an enormous amount of WeakReferences that are never Garbage Collected!

Just making the TraceSwitch a static member would solve the problem!

Also look at the attached Memory-Graph images.

Discussion

  • DaBuddhaMan

    DaBuddhaMan - 2007-05-24

    Original Memory Graph

     
  • DaBuddhaMan

    DaBuddhaMan - 2007-05-24

    Modified Memory Graph

     
  • DaBuddhaMan

    DaBuddhaMan - 2007-05-24

    Logged In: YES
    user_id=1280474
    Originator: YES

    File Added: Modified.JPG

     
  • DaBuddhaMan

    DaBuddhaMan - 2007-05-24

    Modified EntLibLogger class

     
  • DaBuddhaMan

    DaBuddhaMan - 2007-05-24

    Logged In: YES
    user_id=1280474
    Originator: YES

    File Added: EntLibLogger.cs

     
  • ChadC

    ChadC - 2007-11-07

    Logged In: YES
    user_id=1522633
    Originator: NO

    Thanks, this will be fixed in the next release (2.0.2).

     
  • ChadC

    ChadC - 2007-11-07
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks