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. C / C++ / MFC
  4. Number of bytes read coming different while debugging the program and while running it.

Number of bytes read coming different while debugging the program and while running it.

Scheduled Pinned Locked Moved C / C++ / MFC
helpcssdebugging
3 Posts 3 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.
  • L Offline
    L Offline
    learningvisualc
    wrote on last edited by
    #1

    Hi all, I am trying to read a port using CreateFile() and ReadFile() Function using overlapped parameter, but my problem is when i debug the program number of bytes read is coming correct and when i run my program bytes read is coming less... I am not getting why is this happening... Can anybody help me in this... Thanks in advance

    C L 2 Replies Last reply
    0
    • L learningvisualc

      Hi all, I am trying to read a port using CreateFile() and ReadFile() Function using overlapped parameter, but my problem is when i debug the program number of bytes read is coming correct and when i run my program bytes read is coming less... I am not getting why is this happening... Can anybody help me in this... Thanks in advance

      C Offline
      C Offline
      Code o mat
      wrote on last edited by
      #2

      Show some code.

      > The problem with computers is that they do what you tell them to do and not what you want them to do. < > "It doesn't work, fix it" does not qualify as a bug report. < > Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <

      1 Reply Last reply
      0
      • L learningvisualc

        Hi all, I am trying to read a port using CreateFile() and ReadFile() Function using overlapped parameter, but my problem is when i debug the program number of bytes read is coming correct and when i run my program bytes read is coming less... I am not getting why is this happening... Can anybody help me in this... Thanks in advance

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

        that is insufficient information to offer you any help. explain what you are doing, show the relevant code, and give us precise symptoms: how many bytes when good, how many when bad, and how repeatable is that? :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

        Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

        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