Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#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

     
    Attachments
  • DaBuddhaMan
    DaBuddhaMan
    2007-05-24

    Modified Memory Graph

     
    Attachments
  • 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

     
    Attachments
  • 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