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. Windows API
  4. Releasing DC (memory leak )

Releasing DC (memory leak )

Scheduled Pinned Locked Moved Windows API
performancequestionannouncement
5 Posts 5 Posters 17 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.
  • V Offline
    V Offline
    vikas amin
    wrote on last edited by
    #1

    Hi We need to Release the DC if we get the CDC by GetDC() function , this is due to the system has limited no of DC's . But if I have just used the DC by this code , & did not store it do i need to release it ? If then how ? GetFocus()->GetDC ->LineTo(25,25) Can this be the reason for a memory leak ??

    Vikas Amin EATON PUNE

    realJSOPR H 2 Replies Last reply
    0
    • V vikas amin

      Hi We need to Release the DC if we get the CDC by GetDC() function , this is due to the system has limited no of DC's . But if I have just used the DC by this code , & did not store it do i need to release it ? If then how ? GetFocus()->GetDC ->LineTo(25,25) Can this be the reason for a memory leak ??

      Vikas Amin EATON PUNE

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #2

      Idiot.

      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
      -----
      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

      J 1 Reply Last reply
      0
      • realJSOPR realJSOP

        Idiot.

        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

        J Offline
        J Offline
        Jonathan Darka
        wrote on last edited by
        #3

        seconded.


        Darka [Xanya] "I am not a slave to a god that doesn't exist."

        P 1 Reply Last reply
        0
        • J Jonathan Darka

          seconded.


          Darka [Xanya] "I am not a slave to a god that doesn't exist."

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          And thirded. I know it's not a word, but it should be:-D

          Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.

          1 Reply Last reply
          0
          • V vikas amin

            Hi We need to Release the DC if we get the CDC by GetDC() function , this is due to the system has limited no of DC's . But if I have just used the DC by this code , & did not store it do i need to release it ? If then how ? GetFocus()->GetDC ->LineTo(25,25) Can this be the reason for a memory leak ??

            Vikas Amin EATON PUNE

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

            This is Vista forum but it seems that you choose wrong forum for your question.


            WhiteSky


            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