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 authentification level.

bug #13595: Form with Icon crashes on Win32 ilrun

Submitted by:  None
Submitted on:  Fri 01 Jul 2005 10:11:39 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

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

Any news?

Anonymous
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.

Anonymous

 

Attached Files
file #3141:  commandprompt.gif added by None (19kB - 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

 

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

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Fri 01 Jul 2005 10:11:39 AM UTCNoneAttached File-=>Added commandprompt.gif, #2649

Back to the top


Powered by Savane 3.1-cleanup