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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. VB6 Serial Comm Crashs Visual Studio

VB6 Serial Comm Crashs Visual Studio

Scheduled Pinned Locked Moved Visual Basic
csharpvisual-studiohardwarealgorithms
5 Posts 4 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.
  • S Offline
    S Offline
    suguimoto
    wrote on last edited by
    #1

    Hello everyone, I got a really strange problem. I could make 2 computers to communicate to each other through hyperterminal, 115200,8,n,1 Hardware(CTS,RTS). Then I decide to make a VB6 program in one of those (with the same parameters). Sending data from VB6 is just fine (the hyperterminal in the other computer shows the same data), but when it receives any data the program crashes and the program manager shows 99% of the cpu is beings used by VB6 :confused::confused: Note.: There´re no infinite loops neither "OnComm" function is avaible in the algorithm. Did anyone have this problem? Or knows how to solve it? Thanks ;)

    C M L 3 Replies Last reply
    0
    • S suguimoto

      Hello everyone, I got a really strange problem. I could make 2 computers to communicate to each other through hyperterminal, 115200,8,n,1 Hardware(CTS,RTS). Then I decide to make a VB6 program in one of those (with the same parameters). Sending data from VB6 is just fine (the hyperterminal in the other computer shows the same data), but when it receives any data the program crashes and the program manager shows 99% of the cpu is beings used by VB6 :confused::confused: Note.: There´re no infinite loops neither "OnComm" function is avaible in the algorithm. Did anyone have this problem? Or knows how to solve it? Thanks ;)

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Why would you use VB6 ? It's out of date, and was always rubbish.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      S 1 Reply Last reply
      0
      • S suguimoto

        Hello everyone, I got a really strange problem. I could make 2 computers to communicate to each other through hyperterminal, 115200,8,n,1 Hardware(CTS,RTS). Then I decide to make a VB6 program in one of those (with the same parameters). Sending data from VB6 is just fine (the hyperterminal in the other computer shows the same data), but when it receives any data the program crashes and the program manager shows 99% of the cpu is beings used by VB6 :confused::confused: Note.: There´re no infinite loops neither "OnComm" function is avaible in the algorithm. Did anyone have this problem? Or knows how to solve it? Thanks ;)

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        STOP throw out what you have started, download VB.net express and start again. You are using a tool that is no longer supported.

        1 Reply Last reply
        0
        • C Christian Graus

          Why would you use VB6 ? It's out of date, and was always rubbish.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          S Offline
          S Offline
          suguimoto
          wrote on last edited by
          #4

          Well, it´s easy to program and does not need the whole .net framework to run with. I know it´s out of date, but it´s still reliable for simple tasks and even really old pcs can run. Thanks but... Does anyone have a clue about it?

          1 Reply Last reply
          0
          • S suguimoto

            Hello everyone, I got a really strange problem. I could make 2 computers to communicate to each other through hyperterminal, 115200,8,n,1 Hardware(CTS,RTS). Then I decide to make a VB6 program in one of those (with the same parameters). Sending data from VB6 is just fine (the hyperterminal in the other computer shows the same data), but when it receives any data the program crashes and the program manager shows 99% of the cpu is beings used by VB6 :confused::confused: Note.: There´re no infinite loops neither "OnComm" function is avaible in the algorithm. Did anyone have this problem? Or knows how to solve it? Thanks ;)

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            No matter how obsolete and outdated your chosen language is, Windows always has and always will require you to not touch controls from any thread other than the one that created the control, and my best guess is you are trying to receive and somehow display incoming serial data on a different thread (most asynchronous operations run on some other thread automatically). This little article[^] describes the problem and solution in .NET (using C# examples); I don't know how it looks in ancient VB. :)

            Luc Pattyn

            :badger: :jig: :badger:

            Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.

            :jig: :badger: :jig:

            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