Releasing DC (memory leak )
-
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
-
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
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 -
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 -
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.
-
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
This is Vista forum but it seems that you choose wrong forum for your question.
WhiteSky