bugDotGNU Portable.NET - Bugs: bug #9941, ControlPaint.DrawXXX() throws...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9941: ControlPaint.DrawXXX() throws NullReferenceException when drawing on bitmap

Submitted by:  None
Submitted on:  Mon 09 Aug 2004 04:42:44 PM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Wed 11 Aug 2004 03:06:18 PM UTC, comment #2:

The Pen is set in System.Drawing.Xsharp only if the class is
a DrawingGraphics . The case where it can be an IToolkitImageGraphics is totally ignored.

But I don't see a fix yet :(

Gopal.V <t3rmin4t0r>
Project Administrator
Tue 10 Aug 2004 02:28:06 PM UTC, comment #1:

System.Drawing/Toolkit/ToolkitGraphicsImageBase.cs, selectedPen doesn't appear to be set to anything and setting it to base.Pen and attempting to cast it yields the same results. Someone else with better knowledge of how the toolkit is put together and operates might have better luck.

Deryk Robosson <drobosson>
Project Member
Mon 09 Aug 2004 04:42:44 PM UTC, original submission:

The Draw* methods in System.Windows.Forms.ControlPaint
throw a NullReferenceException when drawing on a bitmap.

The attached test works on the MS .NET Framework.

Anonymous

 

Attached Files
file #1639:  ControlPaintTest.cs added by None (517B - text/x-c++src - test ControlPaint.DrawCheckBox() on bitmap)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

 

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2004-08-09 None Attached File- => Added ControlPaintTest.cs, #1572

Back to the top


Powered by Savane 3.3