Groups | Blog | Home
all groups > dotnet windows forms > august 2006 >

dotnet windows forms : System.drawing bug?


Stanley Omega
8/7/2006 12:00:00 AM
Hello,

I have found that should i set the icon property of a form, it will often
only show up as the default icon. If i then restore down the form, the icon
shows properly. If i then maixmise the form the form icon shows but is very
large possibly 64*64 (its only a 16*16 on the file system). If i then close
the form system.drawing throws an error about not being able to access a
disposed object?

I look into the dissembly and the error occurs on a line with the
instruction "nop" in the base class dispose method.... but i cant debug into
it cause its in system.drawing?

How to debug? Is this a bug? etc

Thanks

stano

Herfried K. Wagner [MVP]
8/7/2006 12:00:00 AM
"Stanley Omega" <omega@giffdon.com> schrieb:
[quoted text, click to view]

How did you create the icon file?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Stanley Omega
8/8/2006 12:00:00 AM
Hello Herfried,

I created some icons with Easy Icon Maker a shareware app.... but i have
tested also with icons created using VS2005. With icons created using vs2005
i dont get the enlarged size but i still get the system.drawing object
dsposed exception. I have checked the settings in Easy icon maker and the
icons were definitely 16*16 24bits. Sometimes the forms also "stutter" and
hang CPU useage goes up to 100 percent. But if i debug into it the code
always fails inside system.drawing so i can never get to the root of the
problem.

Do you think it may be the icon files still? If so do you have any links to
icon specifications for vs2005 and dotnet 2.0?

Thanks

stano



[quoted text, click to view]

AddThis Social Bookmark Button