S
Saurabh
Hello All,
Some days back I had posted a message saying I am getting symptoms like the
'EnableVisualStyles' bug mentioned at lots of places. Most of the time the
application just crashes, and I can't even get a proper stack trace or error
information. That post is pasted below, but currently, when I got a clean
machine and did not install the service pack 1 of the .NET framework 1.1,
the wierd crashes seem to have disappeared. I wonder what it could be....
Any pointers are most welcome
TIA,
--Saurabh
---------------------ORIGINAL PROBLEM -------------------------------
I have a .NET application running on Windows XP. I have quite a few forms,
some modal and some modeless. Once in a while we get a wierd exception in
the application and most of the time the code is transferred to the top
level 'ThreadExceptionEventHandler'. It is difficult to get the information
on actual exception. Most of the time it seems to say "External component
has thrown an exception' and the source of the exception object is 'System'
Doing a bit of searching on the internet, I came across the known bug in
EnableVisualStyles( ). I do not call the Application.EnableVisualStyles at
all. but I do call Application.DoEvents (this was suggested as a fix
somewhere) I tried looking for the comctl32.dll. In the System32 folder the
dll has version 5.82. One of the articles on the internet said, XP uses 6.0
by default. Where would this dll be?
I do get rounded corners for my form's title bar, does this mean that my
application is using visual style? If yes where is it getting set? Is it the
default under Windows XP (SP2)?
Can somebody direct me to information which will lead to better
understanding of visual styles and the related bug. I don't even know
whether what I am facing is the same bug or not
------------------------------------------------------------------------
Some days back I had posted a message saying I am getting symptoms like the
'EnableVisualStyles' bug mentioned at lots of places. Most of the time the
application just crashes, and I can't even get a proper stack trace or error
information. That post is pasted below, but currently, when I got a clean
machine and did not install the service pack 1 of the .NET framework 1.1,
the wierd crashes seem to have disappeared. I wonder what it could be....
Any pointers are most welcome
TIA,
--Saurabh
---------------------ORIGINAL PROBLEM -------------------------------
I have a .NET application running on Windows XP. I have quite a few forms,
some modal and some modeless. Once in a while we get a wierd exception in
the application and most of the time the code is transferred to the top
level 'ThreadExceptionEventHandler'. It is difficult to get the information
on actual exception. Most of the time it seems to say "External component
has thrown an exception' and the source of the exception object is 'System'
Doing a bit of searching on the internet, I came across the known bug in
EnableVisualStyles( ). I do not call the Application.EnableVisualStyles at
all. but I do call Application.DoEvents (this was suggested as a fix
somewhere) I tried looking for the comctl32.dll. In the System32 folder the
dll has version 5.82. One of the articles on the internet said, XP uses 6.0
by default. Where would this dll be?
I do get rounded corners for my form's title bar, does this mean that my
application is using visual style? If yes where is it getting set? Is it the
default under Windows XP (SP2)?
Can somebody direct me to information which will lead to better
understanding of visual styles and the related bug. I don't even know
whether what I am facing is the same bug or not
------------------------------------------------------------------------