System.drawing bug?

S

Stanley Omega

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
 
H

Herfried K. Wagner [MVP]

Stanley Omega said:
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?

How did you create the icon file?
 
S

Stanley Omega

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top