bugDotGNU Portable.NET - Bugs: bug #13595, Form with Icon crashes on Win32...


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

bug #13595: Form with Icon crashes on Win32 ilrun

Submitter:  None
Submitted:  Fri 01 Jul 2005 10:11:39 AM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Fri 14 Mar 2008 07:57:54 AM UTC, comment #2: 

Any news? [http://reallydrugs.com/buy-cialis-online.htm  ]

Tue 05 Jul 2005 05:58:48 AM UTC, comment #1: 

I think the bug is in DrawingTopLevelWindow.HandleFromBitmap:

private IntPtr HandleFromBitmap(Frame frame, bool andMask)
// By default we use the data straight from the frame.
byte[] data = frame.Data;
if (andMask)
TODO: this could be slow.
// Create a new image that we will copy the pixels to, leaving the masked pixels black.
DotGNU.Images.Image newImage  = new DotGNU.Images.Image(frame.Width, frame.Height, frame.PixelFormat);

// --> frame.PixelFormat is indexed for Icons, isn't it

Frame newFrame = newImage.AddFrame();

// --> newFrame doesn't have a palette yet

data = new byte[data.Length];
for (int y = 0; y < frame.Height; y++)
for (int x = 0; x < frame.Width; x++)
if (frame.GetMask(x, y) != 0)
newFrame.SetPixel(x, y, frame.GetPixel(x, y));

// --> SetPixel crashes when called on a frame without palette

data = newFrame.Data;

Erich Kitzm├╝ller <ammoq>
Fri 01 Jul 2005 10:11:39 AM UTC, original submission:  

ilrun throws an exception if you run a simple Windows.Forms application that includes nothing but a explicit icon for the form (compiled by Visual Studio 2003 .NET).
I do not know if this error occurs if you compile the app wit cscc or running ilrun on other platforms.



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

Attached Files
file #3141:  commandprompt.gif added by None (19KiB - image/gif - Screenshot of the command prompt stack trace)


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
2005-07-01 None Attached File- Added commandprompt.gif, #2649

Back to the top

Powered by Savane 3.13-b921.
Corresponding source code