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. simple memory leak

simple memory leak

Scheduled Pinned Locked Moved C#
performancequestion
6 Posts 4 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.
  • U Offline
    U Offline
    User 7811724
    wrote on last edited by
    #1

    hey guys does any one have a simple source code to create a really simple memory leak?

    A V 2 Replies Last reply
    0
    • U User 7811724

      hey guys does any one have a simple source code to create a really simple memory leak?

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      Use an unmanaged resource and dont dispose it. This will create a possible form of memory leak.

      V 1 Reply Last reply
      0
      • U User 7811724

        hey guys does any one have a simple source code to create a really simple memory leak?

        V Offline
        V Offline
        Vipin_Arora
        wrote on last edited by
        #3

        See the link below (create memory leaks): http://stackoverflow.com/questions/620733/memory-leak-in-c-sharp[^] Also check out the video on following link (To prevent memory leaks): http://www.youtube.com/watch?v=--nAYYu3_3M[^]

        Happy Coding... :)

        V 1 Reply Last reply
        0
        • A Abhinav S

          Use an unmanaged resource and dont dispose it. This will create a possible form of memory leak.

          V Offline
          V Offline
          Vipin_Arora
          wrote on last edited by
          #4

          My vote of 5 for to the point answer

          Happy Coding... :)

          1 Reply Last reply
          0
          • V Vipin_Arora

            See the link below (create memory leaks): http://stackoverflow.com/questions/620733/memory-leak-in-c-sharp[^] Also check out the video on following link (To prevent memory leaks): http://www.youtube.com/watch?v=--nAYYu3_3M[^]

            Happy Coding... :)

            V Offline
            V Offline
            VJ Reddy
            wrote on last edited by
            #5

            Good references. 5!

            V 1 Reply Last reply
            0
            • V VJ Reddy

              Good references. 5!

              V Offline
              V Offline
              Vipin_Arora
              wrote on last edited by
              #6

              thanks VJ

              Happy Coding... :)

              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