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. Win 11 oddity?..

Win 11 oddity?..

Scheduled Pinned Locked Moved The Lounge
csharpquestion
17 Posts 8 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.
  • G glennPattonWork3

    Didn't think that! when I can I will look :)

    C Offline
    C Offline
    charlieg
    wrote on last edited by
    #5

    Shao has good points. If you have a rich text box and are adding text to it (what are you doing with that serial port?), then you might have found a bug. Checking the GDI handles is an easy first step, second would be memory leaks. A GDI leak will kill an application pretty quickly. I've written very little .net c# code, so I cannot comment on it's quality, but after all these years I'd be really surprised to see a leak in the rich edit control but it happens. A very long time ago, I traced a GDI leak into CDialog and it's exposure message. Easy to code around, but since my HMI could be running for years, it had to go. Make sure to come back and tell us the conclusion.

    Charlie Gilley “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759 Has never been more appropriate.

    G 1 Reply Last reply
    0
    • G glennPattonWork3

      Hi All, I have written a bit of C# software that is good, working fully. The only thing is there is a condition where a rich textbox overflows and crashed the software (happens only if left unattended for a month). All is fine all is good run the installer on Win11 everything ends up where it should all is well works fine. Today is starts bugging out and crashing with no warning just plain ups and closes without warning just plain up vanishes from the task bar... It was using a serial port but... Has anyone else seen similar with Win 11 or is just my dodgy coding?:confused:

      D Offline
      D Offline
      DrWalter PE
      wrote on last edited by
      #6

      Software is like toddlers. It should never be out of your sight for more than a few minutes, otherwise hire a baby/software sitter

      R D 2 Replies Last reply
      0
      • D DrWalter PE

        Software is like toddlers. It should never be out of your sight for more than a few minutes, otherwise hire a baby/software sitter

        R Offline
        R Offline
        rnbergren
        wrote on last edited by
        #7

        Quote:

        Software Myself is like toddlers. It should never be out of your sight for more than a few minutes, otherwise hire a baby/software sitter

        Fixed that for you

        To err is human to really elephant it up you need a computer

        R 1 Reply Last reply
        0
        • R rnbergren

          Quote:

          Software Myself is like toddlers. It should never be out of your sight for more than a few minutes, otherwise hire a baby/software sitter

          Fixed that for you

          To err is human to really elephant it up you need a computer

          R Offline
          R Offline
          rnbergren
          wrote on last edited by
          #8

          and I was speaking specifically about myself. Not others. Me

          To err is human to really elephant it up you need a computer

          1 Reply Last reply
          0
          • G glennPattonWork3

            Hi All, I have written a bit of C# software that is good, working fully. The only thing is there is a condition where a rich textbox overflows and crashed the software (happens only if left unattended for a month). All is fine all is good run the installer on Win11 everything ends up where it should all is well works fine. Today is starts bugging out and crashing with no warning just plain ups and closes without warning just plain up vanishes from the task bar... It was using a serial port but... Has anyone else seen similar with Win 11 or is just my dodgy coding?:confused:

            J Offline
            J Offline
            jschell
            wrote on last edited by
            #9

            glennPattonWork3 wrote:

            Today is starts bugging

            Other comments are fine but don't seem to address that you are suggesting the following 1. Even new install crashes immediately 2. You did not change anything in the executable 3. The computer you tested on worked before (and it had Windows 11 before.) If the above it true then the most likely explanation is that the environment changed. And the most likely change there is a Windows 11 update happened. Other possibility is that you installed/updated some other software - like a virus checker.

            glennPattonWork3 wrote:

            where a rich textbox overflows

            I don't do UIs but this seems like an application anyways. Have you looked into logging software (libraries) and then added generic try/catches to all threads (which would log)?

            1 Reply Last reply
            0
            • D DrWalter PE

              Software is like toddlers. It should never be out of your sight for more than a few minutes, otherwise hire a baby/software sitter

              D Offline
              D Offline
              Daniel Pfeffer
              wrote on last edited by
              #10

              DrWalter PE wrote:

              Software is like toddlers.

              It should only be let run in a sandbox. :)

              Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

              D 1 Reply Last reply
              0
              • C charlieg

                Shao has good points. If you have a rich text box and are adding text to it (what are you doing with that serial port?), then you might have found a bug. Checking the GDI handles is an easy first step, second would be memory leaks. A GDI leak will kill an application pretty quickly. I've written very little .net c# code, so I cannot comment on it's quality, but after all these years I'd be really surprised to see a leak in the rich edit control but it happens. A very long time ago, I traced a GDI leak into CDialog and it's exposure message. Easy to code around, but since my HMI could be running for years, it had to go. Make sure to come back and tell us the conclusion.

                Charlie Gilley “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759 Has never been more appropriate.

                G Offline
                G Offline
                glennPattonWork3
                wrote on last edited by
                #11

                Odder and odder, Termite, I left logging data from the serial port, got given something else to do, came back it had closed. I am now thinking of trying a third...

                1 Reply Last reply
                0
                • D Daniel Pfeffer

                  DrWalter PE wrote:

                  Software is like toddlers.

                  It should only be let run in a sandbox. :)

                  Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                  D Offline
                  D Offline
                  dandy72
                  wrote on last edited by
                  #12

                  ...and even then it shouldn't be without surveillance, as toddlers tend to find things in the sandbox left by the cat. Then who knows what they'll do with it.

                  C 1 Reply Last reply
                  0
                  • D dandy72

                    ...and even then it shouldn't be without surveillance, as toddlers tend to find things in the sandbox left by the cat. Then who knows what they'll do with it.

                    C Offline
                    C Offline
                    charlieg
                    wrote on last edited by
                    #13

                    decades ago, I left my first son at the age of 3 in the room I was painting. I swear, I was only gone for 30 seconds. Sigh, the damage done :)

                    Charlie Gilley “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759 Has never been more appropriate.

                    1 Reply Last reply
                    0
                    • G glennPattonWork3

                      Hi All, I have written a bit of C# software that is good, working fully. The only thing is there is a condition where a rich textbox overflows and crashed the software (happens only if left unattended for a month). All is fine all is good run the installer on Win11 everything ends up where it should all is well works fine. Today is starts bugging out and crashing with no warning just plain ups and closes without warning just plain up vanishes from the task bar... It was using a serial port but... Has anyone else seen similar with Win 11 or is just my dodgy coding?:confused:

                      C Offline
                      C Offline
                      charlieg
                      wrote on last edited by
                      #14

                      So Mr. Patton - what's the status of this issue? Inquiring minds want to know.

                      Charlie Gilley “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759 Has never been more appropriate.

                      G 1 Reply Last reply
                      0
                      • C charlieg

                        So Mr. Patton - what's the status of this issue? Inquiring minds want to know.

                        Charlie Gilley “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759 Has never been more appropriate.

                        G Offline
                        G Offline
                        glennPattonWork3
                        wrote on last edited by
                        #15

                        Just plain odd, lashed up another app with a rich text box and a loop to place "Huh?" in it and it works, ran my App again, without Admin rights didn't work, with Admin rights ran, left it running and splat, crashed again. I'm starting to think it could be the PC as I ran it at home on Win 11 works, left over night fine. Last Win11 update caused my Work Laptop to choke...

                        C 1 Reply Last reply
                        0
                        • G glennPattonWork3

                          Just plain odd, lashed up another app with a rich text box and a loop to place "Huh?" in it and it works, ran my App again, without Admin rights didn't work, with Admin rights ran, left it running and splat, crashed again. I'm starting to think it could be the PC as I ran it at home on Win 11 works, left over night fine. Last Win11 update caused my Work Laptop to choke...

                          C Offline
                          C Offline
                          charlieg
                          wrote on last edited by
                          #16

                          Not that it's important, but when you moved the application to your home pc, did you re-compile? I wonder if the dlls are the same when the app loads up? I think you are old enough to remember dll-hell :)

                          Charlie Gilley “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759 Has never been more appropriate.

                          G 1 Reply Last reply
                          0
                          • C charlieg

                            Not that it's important, but when you moved the application to your home pc, did you re-compile? I wonder if the dlls are the same when the app loads up? I think you are old enough to remember dll-hell :)

                            Charlie Gilley “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759 Has never been more appropriate.

                            G Offline
                            G Offline
                            glennPattonWork3
                            wrote on last edited by
                            #17

                            Okay, full story, I am not a 'Software Author' therefor I am not entitled to a Vis Studio Licence so I have to use my own. I was compiled on my home machine so ran the installer at work on 11 didn't have 11 at home (now I have!). I have used the installer on Win 7 to 10 with no alteration (all is good) on Win 11 issues. Yes I rember DLL-hell it was how I found CP Googling in vain... My thinking was look at what had changed there will be the answer.

                            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