Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Memory Leak in C#.NET 2005

Memory Leak in C#.NET 2005

Scheduled Pinned Locked Moved C#
csharpperformancehelpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    clint1982
    wrote on last edited by
    #1

    Hey I have created a StreamWriter and an excel object and as far as I sew after creating the excel object part of the StreamWriter changed to null. Did anyone had a similar issue ? Clint

    C H 2 Replies Last reply
    0
    • C clint1982

      Hey I have created a StreamWriter and an excel object and as far as I sew after creating the excel object part of the StreamWriter changed to null. Did anyone had a similar issue ? Clint

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      If memory is being stomped, it's being stomped by Excel in C++ and not by C#, per se. How does part of the object turn to null ? Which part ?

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      C 1 Reply Last reply
      0
      • C clint1982

        Hey I have created a StreamWriter and an excel object and as far as I sew after creating the excel object part of the StreamWriter changed to null. Did anyone had a similar issue ? Clint

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        See How to prevent memory leak in C#.NET?[^] maybe it is some helpful to you

        _**


        **_

        WhiteSky


        1 Reply Last reply
        0
        • C Christian Graus

          If memory is being stomped, it's being stomped by Excel in C++ and not by C#, per se. How does part of the object turn to null ? Which part ?

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

          C Offline
          C Offline
          clint1982
          wrote on last edited by
          #4

          The leak was in the object StreamWriter, BaseStream and Encoding became NULL. Thanks, Clint

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups