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

Submitter:  None
Submitted:  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>
Group 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>
Group 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

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

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.13-4448.
Corresponding source code