Re: Trouble of GDI+ generic error!
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Wed, 28 Mar 2007 07:48:35 GMT
Thanks for your reply james,
Regardingon the those managed GDI+ objects(such as Pen, Brush, Font ....),
you're recommended to dispose it rigth after you've finished using it (in a
certain GDI+ function call such as DrawXXX). Generally, you can consider
put the object disposing code at the end of the certain function which
perform a GDI+ task.
In addition, here is a GDI+ FAQ article about when to dispose object:
#Disposing of GDI+ resources
http://www.bobpowell.net/disposing_of_resources.htm
and there are many other useful faq articles on GDI+ there:
http://www.bobpowell.net/faqmain.htm
Hope this also helps.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Re: Trouble of GDI+ generic error!
- From: James Wong
- Re: Trouble of GDI+ generic error!
- References:
- Trouble of GDI+ generic error!
- From: James Wong
- RE: Trouble of GDI+ generic error!
- From: Steven Cheng[MSFT]
- Re: Trouble of GDI+ generic error!
- From: James Wong
- Re: Trouble of GDI+ generic error!
- From: Steven Cheng[MSFT]
- Re: Trouble of GDI+ generic error!
- From: James Wong
- Re: Trouble of GDI+ generic error!
- From: Dennis
- Re: Trouble of GDI+ generic error!
- From: James Wong
- Re: Trouble of GDI+ generic error!
- From: Steven Cheng[MSFT]
- Re: Trouble of GDI+ generic error!
- From: James Wong
- Trouble of GDI+ generic error!
- Prev by Date: Re: reasons to hate C#
- Next by Date: SPID problem
- Previous by thread: Re: Trouble of GDI+ generic error!
- Next by thread: Re: Trouble of GDI+ generic error!
- Index(es):
Relevant Pages
|