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. General Programming
  3. C#
  4. Debug vs. Release

Debug vs. Release

Scheduled Pinned Locked Moved C#
questionvisual-studiodebuggingannouncementworkspace
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.
  • Z Offline
    Z Offline
    zafersavas
    wrote on last edited by
    #1

    Hi all, I have a simple serial port application in which I am listening to serial port and displaying all the data which is received to a richtextbox. My Question is; When i build the application and run in "Debug" configuration I get "The I/O operation has been aborted because of either a thread exit or an application request" exception at serialPort.ReadExisting() transaction. However when I build the application in "Release" Configuration I never see this exception. In my opinion there is no reason for the exception, but unfortunately I get it in debug mode. Any ideas? Kind Regards zafer

    C P 2 Replies Last reply
    0
    • Z zafersavas

      Hi all, I have a simple serial port application in which I am listening to serial port and displaying all the data which is received to a richtextbox. My Question is; When i build the application and run in "Debug" configuration I get "The I/O operation has been aborted because of either a thread exit or an application request" exception at serialPort.ReadExisting() transaction. However when I build the application in "Release" Configuration I never see this exception. In my opinion there is no reason for the exception, but unfortunately I get it in debug mode. Any ideas? Kind Regards zafer

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

      A debug version has debug code in it. I can only assume it's interfering with your code. I've found with C# in the past I can set breakpoints in a release version.

      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.

      1 Reply Last reply
      0
      • Z zafersavas

        Hi all, I have a simple serial port application in which I am listening to serial port and displaying all the data which is received to a richtextbox. My Question is; When i build the application and run in "Debug" configuration I get "The I/O operation has been aborted because of either a thread exit or an application request" exception at serialPort.ReadExisting() transaction. However when I build the application in "Release" Configuration I never see this exception. In my opinion there is no reason for the exception, but unfortunately I get it in debug mode. Any ideas? Kind Regards zafer

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        Dunno. Read up on the Exception; it may be like cross-thread Exceptions that get thrown in debug mode but not in release mode.

        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