Where do you submit bugs?

  • Thread starter Thread starter Neal Andrews
  • Start date Start date
N

Neal Andrews

Hi all,

I have found a bug when using mdi forms with usercontrols that exists in
both version 1.1 of the dot net Framework and in Version 2 (wibley) Version
of the dot net Framework. However MS does not appear to have any obvious
place to submit bugs. Does anyone know where you submit bugs too?

Regards
Neal
 
* "Neal Andrews said:
I have found a bug when using mdi forms with usercontrols that exists in
both version 1.1 of the dot net Framework and in Version 2 (wibley) Version
of the dot net Framework. However MS does not appear to have any obvious
place to submit bugs. Does anyone know where you submit bugs too?

Post it here (marked as "BUG:" in the subject) with a description + code
to reproduce the bug. People vom MSFT will see it.

- and/or -

Add the bug to the ".NET Bugs Registry":

<http://www.jelovic.com/dotnetbugs/>
 
Hi Neal,

You may post the detail info on your problem in this thread, it would be
better if you could also provide a small sample to repro this problem. I'll
have a look at it and confirm with our product group.
Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 
Hi All,

I have found three problems, The third problem, is debatable since the
behaviour also appears to exist in vb6, so I'll document the just the first
2 problems for now.



Both problems concern the ImageList control containing 32bpp png images with
alpha channel information and have been reproduced on both Windows XP SP1
with Visual Studio 2003 and Longhorn with the Visual Studio 'Whidbley' beta

Problem 1.
The ImageList control looses it's alpha channel information when further
images are added to the control

Steps to reproduce:

Step 1.
Create a vb project and add an imagelist control and a single picturebox to
the form.

Step 2.
Add the following two lines to the form's 'New' routine.

Application.EnableVisualStyles
Application.DoEvents 'Apparently this fixes some known problems with the
EnableVisualStyles call

Using EnableVisualStyles will enable the ImageList control to draw 32bpp
images with alpha channel information correctly.

Step 3.
In the property window for the ImageList add several 32bpp Images (Note they
must contain valid alpha channel information)

Step 4.
In the Paint Event for the picturebox control add the following code to draw
the first image from the image list.

Me.ImageList1.Draw(e.Graphics, 0, 0, 0)

Step 5.
Run the application and the first image from the ImageList control should be
drawn correctly with it's alpha intact.
All's well so far.

Step 6.
Close the application and go back to the ImageList's property window and add
a few more 32bpp png images.

Step 7.
Run the application again.
And hey presto, the ImageList control has now lost all its alpha channel
information, and the image is drawn with a solid black area where the alpha
channel information was.

As a workaround I have been able to create a routine that adds images to the
ImageList control and then serializes the ImageList collection at runtime
using the same format used in the .resx file. This then retains the alpha
information. However this is a pain to do, and I was hopping that this bug
had already been documented and would be fixed in Whidbley, but it still
appears unfixed in Whidbley.



Problem 2.

With the same project as above and with the ImageList's alpha channel still
intact, change the line

Me.ImageList1.Draw(e.Graphics, 0, 0, 0)

to

Me.ImageList1.Draw(e.Graphics, 0, 0, 20, 20 0)

and run the application

This should draw the image scaled up from 16x16 to 20x20 (provided the
images in the ImageList are 16x16 to start with). However the above routine
again draws the image with solid black areas where the alpha channel
information should be. As a workaround it is possible to use unmanaged code
to draw the scaled image with it's alpha channel intact using the original
ImageList_DrawEx Api call. Look at the decompiled code for the ImageList
control and you should easily see what the problem is.

Finally getting an Image Object out of the ImageList collection returns an
Image object without retaining it's alpha channel information.

I will send you a small program with some 32bpp images that will reproduce
the problem in the next couple of days.

Regards
Neal


"Ying-Shen Yu[MSFT]" said:
Hi Neal,

You may post the detail info on your problem in this thread, it would be
better if you could also provide a small sample to repro this problem. I'll
have a look at it and confirm with our product group.
Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 
Hi Neal,

Thank you for providing the detail info!

I'd like to try it first on my machine, however as I'm not very familiar
with the image formats, I'm not sure which png image and 32bpp with valid
alpha channel info. Could you send me some image to let me try your repro
steps?

Thanks again for leting us know this issue!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 
Hi Neal,

Thanks for your sample code,

I can repro your 2nd problem successfully, and have forwarded it to the
product group to let them look into this issue, I'll update this thread as
soon as the product group gives me a reply.

However I'm unable to repro your 1st problem , here is my repro steps
1. create a new C# Winform app project

2. add
Application.EnableVisualStyles ();
Application.DoEvents();
before the Application.Run()

3. handle the Paint event , add
imageList1.Draw(e.Graphics,0,0,0);

4. add an imagelist , set it's ColorDepth= Depth32Bit, SetImageSize = 32,
Size = 32,32
add image woman2.png,

5, build and run the program the image shows fine.

6 add worker.png to the imagelist
7 build and run the program , the image shows fine.

Could you let me know some further info on repro this problem?
Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 
Hi Ying-Shen Yu,

I'm also now having problems reproducing it. LOL. I can reproduce it on
occasions but not as often as I could before (every time). So I'm going to
have another go at playing around with adding images to try to reproduce the
problem on a more consistent basis. I'll let you know as soon as I have
something, but there's defiantly a problem, it's just a case of trying to
replicating it.

Regards
Neal
 
Hi Neal,

Thanks for your reply.

I got the reply from the product group. The stretch problem is currently a
limitation of the ImageList class in VS.NET 2003 and Whidbey PDC edition.
They have added it to the bug database to track it. Thanks a lot for
letting us know this problem.
If you are able to repro the 1st problem or meet any other problems on
winform,
please be free to post it in our newsgroup to let us know!
Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 
Back
Top