Am Thu, 5 May 2005 17:49:48 +0100 schrieb Saurabh:
> 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
[quoted text clipped - 4 lines]
>
> Any pointers are most welcome
That's strange. I had similar problems but the solution was the
installation of the ServicePack 1 for .NET 1.1. After that I had no more
crashes of this difficult traceable error.
> --Saurabh
> ---------------------ORIGINAL PROBLEM -------------------------------
[quoted text clipped - 4 lines]
> 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'
Yes, that's the pattern. :(
It costs me hours of debbuging sessions.
> 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?
Yes there are comctl32.dll's in version 6.xx. A short search on my systems
(Windows 2003 Server and Windows XP Professional) shows me 4 files on W2003
and 3 files on WXPP. Version numbers are: 5.82.3790.0, 5.82.3790.0,
6.0.2600.0, 6.0.3790.0 and 5.82.2900.2180, 6.0.2600.0, 6.0.2900.2180. These
are numbers from the german versions of the OS.
> 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)?
You use visual styles when you enable this command before
Application.Run(new app): Application.EnableVisualStyles();
> 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
> ------------------------------------------------------------------------
Yes it is the famous EnableVisualStyles bug. Very annoying. Too much
wasting time. In fact you don't use VisualStyles you use maybe a custom
control which use routines from the GDI+ and you get the same behavior like
using VisualStyles.
Greetings from germany...
Frank Loizzi
Saurabh - 06 May 2005 10:15 GMT
I am sure I do not use visual styles. My application is a mix of .NET and
Win32 stuff though.
I guess the fix in SP1 is there only if you use visual styles ;)
I'll have to keep debugging, I can't see any reliable alternative.
If anybody knows anything, please please I am eager to know.
--Saurabh
> Am Thu, 5 May 2005 17:49:48 +0100 schrieb Saurabh:
>
[quoted text clipped - 70 lines]
>
> Frank Loizzi