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. OSK.exe and the worst bug ever...

OSK.exe and the worst bug ever...

Scheduled Pinned Locked Moved The Lounge
helpquestioncareerworkspace
11 Posts 7 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.
  • R Offline
    R Offline
    Roger Alsing 0
    wrote on last edited by
    #1

    I think Ive just found the most weird bug ever in my whole career. We are currently developing an app for a facility that recycle electronics. this involves some industry scales which are used to weigh the recycled parts. In our test environment the communication with the scales worked just fine. when we brought a testmachine to them and tried it worked all fine. However, in production mode they got a message "Access to port COM1 is denied" So after some 6h of debugging we found the problem.. The production machines use OSK.exe , the onscreen keyboard in windows. and for some reason , the onscreen keyboard blocks the access to COM1. you can however , close the keyboard , open the connection to the scales , and then reopen the keyboard. how odd is that? and why in the world do OSK allocate the com1 port?

    M N M 3 Replies Last reply
    0
    • R Roger Alsing 0

      I think Ive just found the most weird bug ever in my whole career. We are currently developing an app for a facility that recycle electronics. this involves some industry scales which are used to weigh the recycled parts. In our test environment the communication with the scales worked just fine. when we brought a testmachine to them and tried it worked all fine. However, in production mode they got a message "Access to port COM1 is denied" So after some 6h of debugging we found the problem.. The production machines use OSK.exe , the onscreen keyboard in windows. and for some reason , the onscreen keyboard blocks the access to COM1. you can however , close the keyboard , open the connection to the scales , and then reopen the keyboard. how odd is that? and why in the world do OSK allocate the com1 port?

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      I think it might be related to the SerialKeys accessibility feature, but changing the port in the Accessibility Options control panel had no effect on which port was in use. It isn't actually osk.exe which opens the serial port, it's a process called msswchx.exe which does it (at least that's what I can tell from Process Explorer[^] - it appears as \Device\Serial0 rather than COM1). Best bet is to contact Microsoft support.

      Stability. What an interesting concept. -- Chris Maunder

      1 Reply Last reply
      0
      • R Roger Alsing 0

        I think Ive just found the most weird bug ever in my whole career. We are currently developing an app for a facility that recycle electronics. this involves some industry scales which are used to weigh the recycled parts. In our test environment the communication with the scales worked just fine. when we brought a testmachine to them and tried it worked all fine. However, in production mode they got a message "Access to port COM1 is denied" So after some 6h of debugging we found the problem.. The production machines use OSK.exe , the onscreen keyboard in windows. and for some reason , the onscreen keyboard blocks the access to COM1. you can however , close the keyboard , open the connection to the scales , and then reopen the keyboard. how odd is that? and why in the world do OSK allocate the com1 port?

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

        Roger J wrote:

        and why in the world do OSK allocate the com1 port?

        Probably because older keyboards (before PS2) used to be connected to COM1? And they didn't want an actual keyboard interfering with their virtual keyboard.

        Regards, Nish


        Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
        Currently working on C++/CLI in Action for Manning Publications. Also visit the Ultimate Toolbox blog (New)

        P 1 Reply Last reply
        0
        • R Roger Alsing 0

          I think Ive just found the most weird bug ever in my whole career. We are currently developing an app for a facility that recycle electronics. this involves some industry scales which are used to weigh the recycled parts. In our test environment the communication with the scales worked just fine. when we brought a testmachine to them and tried it worked all fine. However, in production mode they got a message "Access to port COM1 is denied" So after some 6h of debugging we found the problem.. The production machines use OSK.exe , the onscreen keyboard in windows. and for some reason , the onscreen keyboard blocks the access to COM1. you can however , close the keyboard , open the connection to the scales , and then reopen the keyboard. how odd is that? and why in the world do OSK allocate the com1 port?

          M Offline
          M Offline
          Marc Clifton
          wrote on last edited by
          #4

          I'm surprised you can even find computers with serial ports on them nowadays (at least built in, there's a variety of vendors that make all sorts of interesting serial port stuff). I treasure my laptop with a serial port. Marc

          Thyme In The Country

          Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson
          People are just notoriously impossible. --DavidCrow
          There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer

          N 1 Reply Last reply
          0
          • N Nish Nishant

            Roger J wrote:

            and why in the world do OSK allocate the com1 port?

            Probably because older keyboards (before PS2) used to be connected to COM1? And they didn't want an actual keyboard interfering with their virtual keyboard.

            Regards, Nish


            Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
            Currently working on C++/CLI in Action for Manning Publications. Also visit the Ultimate Toolbox blog (New)

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

            No, before PS2 keyboards were connected to what's called "DIN plug" over here directly on the MoBo. (Mouse was connected to serial port, though) (Of ocurse, it's called "DIN Buchse" here, but.. you know..)


            We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
            Tree in C# || Fold With Us! || sighist

            N 1 Reply Last reply
            0
            • M Marc Clifton

              I'm surprised you can even find computers with serial ports on them nowadays (at least built in, there's a variety of vendors that make all sorts of interesting serial port stuff). I treasure my laptop with a serial port. Marc

              Thyme In The Country

              Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson
              People are just notoriously impossible. --DavidCrow
              There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer

              N Offline
              N Offline
              NormDroid
              wrote on last edited by
              #6

              "Thyme In The Country" nice advertisement ;P

              We made the buttons on the screen look so good you'll want to lick them. Steve Jobs

              M 1 Reply Last reply
              0
              • N NormDroid

                "Thyme In The Country" nice advertisement ;P

                We made the buttons on the screen look so good you'll want to lick them. Steve Jobs

                M Offline
                M Offline
                Marc Clifton
                wrote on last edited by
                #7

                norm .net wrote:

                nice advertisement

                Something different. It's my neighbor's B&B, and I occasionally cook breakfast there and candlelight dinners. :) Marc

                Thyme In The Country

                Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson
                People are just notoriously impossible. --DavidCrow
                There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer

                B 1 Reply Last reply
                0
                • P peterchen

                  No, before PS2 keyboards were connected to what's called "DIN plug" over here directly on the MoBo. (Mouse was connected to serial port, though) (Of ocurse, it's called "DIN Buchse" here, but.. you know..)


                  We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
                  Tree in C# || Fold With Us! || sighist

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

                  peterchen wrote:

                  No, before PS2 keyboards were connected to what's called "DIN plug" over here directly on the MoBo. (Mouse was connected to serial port, though) (Of ocurse, it's called "DIN Buchse" here, but.. you know..)

                  Ah yes - I remember now :doh:

                  Regards, Nish


                  Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                  Currently working on C++/CLI in Action for Manning Publications. Also visit the Ultimate Toolbox blog (New)

                  P 1 Reply Last reply
                  0
                  • M Marc Clifton

                    norm .net wrote:

                    nice advertisement

                    Something different. It's my neighbor's B&B, and I occasionally cook breakfast there and candlelight dinners. :) Marc

                    Thyme In The Country

                    Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson
                    People are just notoriously impossible. --DavidCrow
                    There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer

                    B Offline
                    B Offline
                    BrockVnm
                    wrote on last edited by
                    #9

                    It looks really cool. I may have to try it out one weekend :)


                    We shouldn't assume something's debugged just because everyone in the whole world has access to the source code.

                    1 Reply Last reply
                    0
                    • N Nish Nishant

                      peterchen wrote:

                      No, before PS2 keyboards were connected to what's called "DIN plug" over here directly on the MoBo. (Mouse was connected to serial port, though) (Of ocurse, it's called "DIN Buchse" here, but.. you know..)

                      Ah yes - I remember now :doh:

                      Regards, Nish


                      Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                      Currently working on C++/CLI in Action for Manning Publications. Also visit the Ultimate Toolbox blog (New)

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

                      How do you call the plug?


                      We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
                      Tree in C# || Fold With Us! || sighist

                      N 1 Reply Last reply
                      0
                      • P peterchen

                        How do you call the plug?


                        We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
                        Tree in C# || Fold With Us! || sighist

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

                        peterchen wrote:

                        How do you call the plug?

                        In school, we used to call it the keyboard port (since none of us knew the right word) :-O

                        Regards, Nish


                        Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                        Currently working on C++/CLI in Action for Manning Publications. Also visit the Ultimate Toolbox blog (New)

                        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