Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Astonishing bug (XP)

Astonishing bug (XP)

Scheduled Pinned Locked Moved The Lounge
helpcsharpc++questionannouncement
14 Posts 12 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nish Nishant
    wrote on last edited by
    #1

    From the MS NGs _"Nobody" <nobody@cox.net> wrote in message news: OS effected: all flavors of Windows XP Steps to reproduce: 1) Make sure XP themes are turned ON 2) Open up an application (ex. Notepad) 3) Open up a modal dialog (ex. About box) 4) Turn themes off by setting to Classic mode. App and modal dialog will change to classic mode. Do NOT close dialog. 5) Now WITHOUT closing the modal dialog, switch back to themes You will notice that the app and the dialog are in some bizzare "25% themed mode". If you do not have a modal dialog open, changing back and forth works correctly. I notice this is not only notepad or MFC, but pretty much every application. Is there any possible work around for this bug? ** some interesting notes ** 1) if you start the app in non themed mode and switch back and forth it works fine. Only if you START in themed mode does this problem come up. 2) I tried creating a popup window in a completely different thread and trying it again. Even this popup window can not change between themed and non themed correctly if a modal dialog is open in the main thread. 3) If you start in themed mode and after changing to classic mode close the dialog box and reopen THEN change to themed mode, everything works correctly. Any ideas? besides of course closing the dialog box. Thanks. I've tried posting messages, using timers, SetWindowTheme, etc. Nothing seems to work._ Regards, Nish :wtf:

    P R G P J 5 Replies Last reply
    0
    • N Nish Nishant

      From the MS NGs _"Nobody" <nobody@cox.net> wrote in message news: OS effected: all flavors of Windows XP Steps to reproduce: 1) Make sure XP themes are turned ON 2) Open up an application (ex. Notepad) 3) Open up a modal dialog (ex. About box) 4) Turn themes off by setting to Classic mode. App and modal dialog will change to classic mode. Do NOT close dialog. 5) Now WITHOUT closing the modal dialog, switch back to themes You will notice that the app and the dialog are in some bizzare "25% themed mode". If you do not have a modal dialog open, changing back and forth works correctly. I notice this is not only notepad or MFC, but pretty much every application. Is there any possible work around for this bug? ** some interesting notes ** 1) if you start the app in non themed mode and switch back and forth it works fine. Only if you START in themed mode does this problem come up. 2) I tried creating a popup window in a completely different thread and trying it again. Even this popup window can not change between themed and non themed correctly if a modal dialog is open in the main thread. 3) If you start in themed mode and after changing to classic mode close the dialog box and reopen THEN change to themed mode, everything works correctly. Any ideas? besides of course closing the dialog box. Thanks. I've tried posting messages, using timers, SetWindowTheme, etc. Nothing seems to work._ Regards, Nish :wtf:

      P Offline
      P Offline
      Paul Watson
      wrote on last edited by
      #2

      Is this a joke? regards, Paul Watson South Africa The Code Project Pope Pius II said "The only prescription is more cowbell. "

      N V 2 Replies Last reply
      0
      • P Paul Watson

        Is this a joke? regards, Paul Watson South Africa The Code Project Pope Pius II said "The only prescription is more cowbell. "

        N Offline
        N Offline
        Nish Nishant
        wrote on last edited by
        #3

        Paul Watson wrote: Is this a joke? :) Actually, what I found astonishing is how the bug went unnoticed during the MS internal testing. Any basic test to see if themes work okay, would involve rapid switching on/off themes with windows open. Nish

        1 Reply Last reply
        0
        • P Paul Watson

          Is this a joke? regards, Paul Watson South Africa The Code Project Pope Pius II said "The only prescription is more cowbell. "

          V Offline
          V Offline
          Vikram A Punathambekar
          wrote on last edited by
          #4

          No, I was able to reproduce it as well. :) Weird bug. :omg: Vikram.


          http://www.geocities.com/vpunathambekar "Argue for your limitations, and sure enough, they're yours." – Richard Bach, "Illusions". "I think the internet has been online for too long." – Joesox.

          P 1 Reply Last reply
          0
          • V Vikram A Punathambekar

            No, I was able to reproduce it as well. :) Weird bug. :omg: Vikram.


            http://www.geocities.com/vpunathambekar "Argue for your limitations, and sure enough, they're yours." – Richard Bach, "Illusions". "I think the internet has been online for too long." – Joesox.

            P Offline
            P Offline
            Paul Watson
            wrote on last edited by
            #5

            Oh I know it happens, easy to reproduce once you know the completely un-likely set of steps. That is why I asked if it was a joke. A joke in that surely it is not an astonishing bug. I doubt anyone but developers doing some testing would run into this bug. regards, Paul Watson South Africa The Code Project Pope Pius II said "The only prescription is more cowbell. "

            G A 2 Replies Last reply
            0
            • P Paul Watson

              Oh I know it happens, easy to reproduce once you know the completely un-likely set of steps. That is why I asked if it was a joke. A joke in that surely it is not an astonishing bug. I doubt anyone but developers doing some testing would run into this bug. regards, Paul Watson South Africa The Code Project Pope Pius II said "The only prescription is more cowbell. "

              G Offline
              G Offline
              Graham Bradshaw
              wrote on last edited by
              #6

              Paul Watson wrote: I doubt anyone but developers doing some testing would run into this bug. Isn't that the point? Developers should test software before it's released? I'm with Nish on this one. Basic testing of the XP theme engine should have picked this up.

              H O 2 Replies Last reply
              0
              • N Nish Nishant

                From the MS NGs _"Nobody" <nobody@cox.net> wrote in message news: OS effected: all flavors of Windows XP Steps to reproduce: 1) Make sure XP themes are turned ON 2) Open up an application (ex. Notepad) 3) Open up a modal dialog (ex. About box) 4) Turn themes off by setting to Classic mode. App and modal dialog will change to classic mode. Do NOT close dialog. 5) Now WITHOUT closing the modal dialog, switch back to themes You will notice that the app and the dialog are in some bizzare "25% themed mode". If you do not have a modal dialog open, changing back and forth works correctly. I notice this is not only notepad or MFC, but pretty much every application. Is there any possible work around for this bug? ** some interesting notes ** 1) if you start the app in non themed mode and switch back and forth it works fine. Only if you START in themed mode does this problem come up. 2) I tried creating a popup window in a completely different thread and trying it again. Even this popup window can not change between themed and non themed correctly if a modal dialog is open in the main thread. 3) If you start in themed mode and after changing to classic mode close the dialog box and reopen THEN change to themed mode, everything works correctly. Any ideas? besides of course closing the dialog box. Thanks. I've tried posting messages, using timers, SetWindowTheme, etc. Nothing seems to work._ Regards, Nish :wtf:

                R Offline
                R Offline
                Richard Day
                wrote on last edited by
                #7

                I tried this and got the same result, but I've noticed a few more "funnies" since which also seem to suggest MS testing may have been less than comprehensive. A child window in SQL query analyser that was open during the change acquired a blue border. And I opened a fresh copy of calc and the menu items have a lighter coloured block around them. Strange but true.

                1 Reply Last reply
                0
                • N Nish Nishant

                  From the MS NGs _"Nobody" <nobody@cox.net> wrote in message news: OS effected: all flavors of Windows XP Steps to reproduce: 1) Make sure XP themes are turned ON 2) Open up an application (ex. Notepad) 3) Open up a modal dialog (ex. About box) 4) Turn themes off by setting to Classic mode. App and modal dialog will change to classic mode. Do NOT close dialog. 5) Now WITHOUT closing the modal dialog, switch back to themes You will notice that the app and the dialog are in some bizzare "25% themed mode". If you do not have a modal dialog open, changing back and forth works correctly. I notice this is not only notepad or MFC, but pretty much every application. Is there any possible work around for this bug? ** some interesting notes ** 1) if you start the app in non themed mode and switch back and forth it works fine. Only if you START in themed mode does this problem come up. 2) I tried creating a popup window in a completely different thread and trying it again. Even this popup window can not change between themed and non themed correctly if a modal dialog is open in the main thread. 3) If you start in themed mode and after changing to classic mode close the dialog box and reopen THEN change to themed mode, everything works correctly. Any ideas? besides of course closing the dialog box. Thanks. I've tried posting messages, using timers, SetWindowTheme, etc. Nothing seems to work._ Regards, Nish :wtf:

                  G Offline
                  G Offline
                  Garth Watkins
                  wrote on last edited by
                  #8

                  Try this out. Open an MFC MDI application e.g. Spy++ for those with VC++ installed(Doesn't seem to happen with non MFC). Run Task Manager and select the processes tab. Make sure that you've got the 'GDI Objects' column activated. Take note of the number of GDI objects for the app that you've elected to run. Open a new MDI child window (document). The GDI object count for the app naturally goes up. close the opened document. The object count goes down, but not to the original number before the doc was opened. Repeatedly open and close a new document and note how the gdi object count keeps getting higher and higher. Resource leakage ? Cheers Garf

                  1 Reply Last reply
                  0
                  • P Paul Watson

                    Oh I know it happens, easy to reproduce once you know the completely un-likely set of steps. That is why I asked if it was a joke. A joke in that surely it is not an astonishing bug. I doubt anyone but developers doing some testing would run into this bug. regards, Paul Watson South Africa The Code Project Pope Pius II said "The only prescription is more cowbell. "

                    A Offline
                    A Offline
                    Andy Brummer
                    wrote on last edited by
                    #9

                    As unlikely as this is to happen, windows volume means it will happen enough. For some of the websites I've worked on, once in a million events happend 1-2 times a day just because of the volume of traffic on the site. That's another thing in the whole Linux/Windows debate that doesn't get brought up as much. Windows has more users so more strange bugs like this are discovered, making it look buggier. At least it isn't brought up as much as spyware and security issues.


                    I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon

                    1 Reply Last reply
                    0
                    • G Graham Bradshaw

                      Paul Watson wrote: I doubt anyone but developers doing some testing would run into this bug. Isn't that the point? Developers should test software before it's released? I'm with Nish on this one. Basic testing of the XP theme engine should have picked this up.

                      H Offline
                      H Offline
                      hauptman
                      wrote on last edited by
                      #10

                      It's not a bug, it's a feauture -.-

                      J 1 Reply Last reply
                      0
                      • H hauptman

                        It's not a bug, it's a feauture -.-

                        J Offline
                        J Offline
                        Jerry Hammond
                        wrote on last edited by
                        #11

                        hauptman wrote: It's not a bug, it's a feauture -.- Only a game tester would appreciate the ironic hunor of that. :laugh: Jerry He said this was like painstakingly assembling the first layer of a house of cards, then boasting that the next 15,000 layers were a mere formality.--The Code Book, pp. 331 Toasty0.com DotNetGroup.org

                        1 Reply Last reply
                        0
                        • N Nish Nishant

                          From the MS NGs _"Nobody" <nobody@cox.net> wrote in message news: OS effected: all flavors of Windows XP Steps to reproduce: 1) Make sure XP themes are turned ON 2) Open up an application (ex. Notepad) 3) Open up a modal dialog (ex. About box) 4) Turn themes off by setting to Classic mode. App and modal dialog will change to classic mode. Do NOT close dialog. 5) Now WITHOUT closing the modal dialog, switch back to themes You will notice that the app and the dialog are in some bizzare "25% themed mode". If you do not have a modal dialog open, changing back and forth works correctly. I notice this is not only notepad or MFC, but pretty much every application. Is there any possible work around for this bug? ** some interesting notes ** 1) if you start the app in non themed mode and switch back and forth it works fine. Only if you START in themed mode does this problem come up. 2) I tried creating a popup window in a completely different thread and trying it again. Even this popup window can not change between themed and non themed correctly if a modal dialog is open in the main thread. 3) If you start in themed mode and after changing to classic mode close the dialog box and reopen THEN change to themed mode, everything works correctly. Any ideas? besides of course closing the dialog box. Thanks. I've tried posting messages, using timers, SetWindowTheme, etc. Nothing seems to work._ Regards, Nish :wtf:

                          P Offline
                          P Offline
                          peterchen
                          wrote on last edited by
                          #12

                          Just yesterday I read Raymond Chen explaining the why on his blog :rolleyes:


                          Pandoras Gift #44: Hope. The one that keeps you on suffering.
                          aber.. "Wie gesagt, der Scheiss is' Therapie"
                          boost your code || Fold With Us! || sighist | doxygen

                          1 Reply Last reply
                          0
                          • N Nish Nishant

                            From the MS NGs _"Nobody" <nobody@cox.net> wrote in message news: OS effected: all flavors of Windows XP Steps to reproduce: 1) Make sure XP themes are turned ON 2) Open up an application (ex. Notepad) 3) Open up a modal dialog (ex. About box) 4) Turn themes off by setting to Classic mode. App and modal dialog will change to classic mode. Do NOT close dialog. 5) Now WITHOUT closing the modal dialog, switch back to themes You will notice that the app and the dialog are in some bizzare "25% themed mode". If you do not have a modal dialog open, changing back and forth works correctly. I notice this is not only notepad or MFC, but pretty much every application. Is there any possible work around for this bug? ** some interesting notes ** 1) if you start the app in non themed mode and switch back and forth it works fine. Only if you START in themed mode does this problem come up. 2) I tried creating a popup window in a completely different thread and trying it again. Even this popup window can not change between themed and non themed correctly if a modal dialog is open in the main thread. 3) If you start in themed mode and after changing to classic mode close the dialog box and reopen THEN change to themed mode, everything works correctly. Any ideas? besides of course closing the dialog box. Thanks. I've tried posting messages, using timers, SetWindowTheme, etc. Nothing seems to work._ Regards, Nish :wtf:

                            J Offline
                            J Offline
                            John Carson
                            wrote on last edited by
                            #13

                            I don't find it in the slightest bit surprising. I have found much more obvious bugs in XP. John Carson Q: How many Bush Administration officials does it take to replace a light bulb? A: None. As the President and Secretary Rumsfeld have made clear, the light bulb is doing a great job and we and our coalition allies are encouraged by the progress it is making. Mike Carlton

                            1 Reply Last reply
                            0
                            • G Graham Bradshaw

                              Paul Watson wrote: I doubt anyone but developers doing some testing would run into this bug. Isn't that the point? Developers should test software before it's released? I'm with Nish on this one. Basic testing of the XP theme engine should have picked this up.

                              O Offline
                              O Offline
                              ogrig
                              wrote on last edited by
                              #14

                              Graham Bradshaw wrote: Developers should test software before it's released? is this a joke? of course NOT! that's what TESTERS are for. my guess is that's how the (not very few) Microsoft bugs make it into the production releases: only use for testing the developers and feed-back from the beta versions. great for lower costs, and you can see the results for yourself: when was the last time a major Microsoft piece of software worked reasonably without a couple of service packs? OGR

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups