Click here to Skip to main content
15,896,153 members
Home / Discussions / C#
   

C#

 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
OriginalGriff14-May-10 22:22
mveOriginalGriff14-May-10 22:22 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Som Shekhar14-May-10 22:41
Som Shekhar14-May-10 22:41 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
OriginalGriff14-May-10 23:40
mveOriginalGriff14-May-10 23:40 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Som Shekhar15-May-10 0:22
Som Shekhar15-May-10 0:22 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Pete O'Hanlon15-May-10 5:55
mvePete O'Hanlon15-May-10 5:55 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
PIEBALDconsult15-May-10 5:00
mvePIEBALDconsult15-May-10 5:00 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
AspDotNetDev17-May-10 17:21
protectorAspDotNetDev17-May-10 17:21 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
OriginalGriff17-May-10 21:26
mveOriginalGriff17-May-10 21:26 
Don't forget that the Graphics object (along with Pens, Brushes, etc.) do not just allocate unmanaged memory - they also allocate GDI handles, which are a limited system resource. If you do not release them, there is no guarantee that your software will continue to work in all environments. Using Dispose on all applicable objects is considered good practice because it does reduce the chances of unpredictable failures now or in the future.

On a side note: If your code executed only once a second, it would execute 100000 Graphics object creations in just over a day. How long would it last before it started to get problems? I dunno; that is the fun of memory leaks!
I have learnt that you can not make someone love you, all you can do is stalk them and hope they panic and give in.

Apathy Error: Don't bother striking any key.

GeneralRe: So I Tried Graphics Tonight For The First Time Pin
AspDotNetDev17-May-10 21:33
protectorAspDotNetDev17-May-10 21:33 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
OriginalGriff17-May-10 21:49
mveOriginalGriff17-May-10 21:49 
AnswerRe: So I Tried Graphics Tonight For The First Time Pin
DaveyM6914-May-10 23:18
professionalDaveyM6914-May-10 23:18 
AnswerRe: So I Tried Graphics Tonight For The First Time Pin
Luc Pattyn15-May-10 2:18
sitebuilderLuc Pattyn15-May-10 2:18 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Roger Wright15-May-10 4:46
professionalRoger Wright15-May-10 4:46 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Luc Pattyn15-May-10 5:24
sitebuilderLuc Pattyn15-May-10 5:24 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Som Shekhar15-May-10 5:04
Som Shekhar15-May-10 5:04 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Luc Pattyn15-May-10 5:28
sitebuilderLuc Pattyn15-May-10 5:28 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Roger Wright15-May-10 6:10
professionalRoger Wright15-May-10 6:10 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Pete O'Hanlon15-May-10 5:57
mvePete O'Hanlon15-May-10 5:57 
AnswerRe: So I Tried Graphics Tonight For The First Time Pin
PIEBALDconsult15-May-10 5:06
mvePIEBALDconsult15-May-10 5:06 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Luc Pattyn15-May-10 5:25
sitebuilderLuc Pattyn15-May-10 5:25 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Som Shekhar15-May-10 5:36
Som Shekhar15-May-10 5:36 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
PIEBALDconsult15-May-10 13:09
mvePIEBALDconsult15-May-10 13:09 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
PIEBALDconsult15-May-10 13:09
mvePIEBALDconsult15-May-10 13:09 
QuestiondataGridView filtering with IList. Pin
mprice21414-May-10 10:50
mprice21414-May-10 10:50 
AnswerRe: dataGridView filtering with IList. Pin
Henry Minute15-May-10 1:22
Henry Minute15-May-10 1:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.