Re: Graphics.TextRenderingHint throw exception?
- From: "schneider" <eschneider.news.ms@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 3 Mar 2008 10:38:38 -0600
Was think of writing some kind of generic wrapper to see if i am disposing
it too early...
Thanks, for the help, and I'm still waiting for you to publish a book on
..NET Drawing...
Thanks again,
Schneider
"Bob Powell [MVP]" <bob@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6DF1B4BF-96D7-4FEB-995E-38C3E161107C@xxxxxxxxxxxxxxxx
Disposing the graphics is a common problem. You'll need to check your
code carefully.
--
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"schneider" <eschneider.news.ms@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:Obv5zTUfIHA.4164@xxxxxxxxxxxxxxxxxxxxxxx
There is a lot of code and I can only reproduce it through a set of mouse
sequences.
I think maybe the graphics has been disposed, but can't be sure. Seems
strange the thow an error reading a property. Every property in graphics
says "Invalid parameter value". What parameter?
it craps out on:
Graphics.TextRenderingHint
or
Graphics.Save
"Bob Powell [MVP]" <bob@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:87386324-AFC5-4C6F-84B1-C0104F40D202@xxxxxxxxxxxxxxxx
Can you post an example of when this occurs?
--
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"schneider" <eschneider@xxxxxxxxxxxxx> wrote in message
news:OJ1JATweIHA.3724@xxxxxxxxxxxxxxxxxxxxxxx
Under some cases Graphics.TextRenderingHint and also Graphics.Save
throws an exception?
I can't seem to understand why. or what I'm doing wrong? and the error
message is useless.
Anyone know whats going on?
Thanks
Schneider
.
- Follow-Ups:
- Re: Graphics.TextRenderingHint throw exception?
- From: Bob Powell [MVP]
- Re: Graphics.TextRenderingHint throw exception?
- References:
- Re: Graphics.TextRenderingHint throw exception?
- From: schneider
- Re: Graphics.TextRenderingHint throw exception?
- From: Bob Powell [MVP]
- Re: Graphics.TextRenderingHint throw exception?
- Prev by Date: Re: Graphics.TextRenderingHint throw exception?
- Next by Date: Re: Loss of precision when drawing gridlines and blocks on top.....
- Previous by thread: Re: Graphics.TextRenderingHint throw exception?
- Next by thread: Re: Graphics.TextRenderingHint throw exception?
- Index(es):
Relevant Pages
|