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 / C++ / MFC
  4. Error code 0 while sending on socket

Error code 0 while sending on socket

Scheduled Pinned Locked Moved C / C++ / MFC
helpdebuggingtutorial
4 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.
  • F Offline
    F Offline
    FASTian
    wrote on last edited by
    #1

    Hi there, Was wondering if anybody why i get this exception while sending data over a socket. I am using CAsyncSocket for socket connections. I am getting error code 0 when i catch the exception and call GetLastError(). I cant seem to be able to trace why this is happening as the error generates randomly. Any advice on how to handle this and i would really appreciate if somebody could help me out on this. Thanks

    D L 2 Replies Last reply
    0
    • F FASTian

      Hi there, Was wondering if anybody why i get this exception while sending data over a socket. I am using CAsyncSocket for socket connections. I am getting error code 0 when i catch the exception and call GetLastError(). I cant seem to be able to trace why this is happening as the error generates randomly. Any advice on how to handle this and i would really appreciate if somebody could help me out on this. Thanks

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      What's the exception that's thrown?


      "Take only what you need and leave the land as you found it." - Native American Proverb

      F 1 Reply Last reply
      0
      • D David Crow

        What's the exception that's thrown?


        "Take only what you need and leave the land as you found it." - Native American Proverb

        F Offline
        F Offline
        FASTian
        wrote on last edited by
        #3

        This is all that i am getting "The operation completed successfully"

        1 Reply Last reply
        0
        • F FASTian

          Hi there, Was wondering if anybody why i get this exception while sending data over a socket. I am using CAsyncSocket for socket connections. I am getting error code 0 when i catch the exception and call GetLastError(). I cant seem to be able to trace why this is happening as the error generates randomly. Any advice on how to handle this and i would really appreciate if somebody could help me out on this. Thanks

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          is it realyl an exception or is something returning 0? If its an exception, run it in the debugger and set the debugger to break on an exception. This will show you where its being thrown from and should give you some idea of whats going on. Usually 0 means success. Are you sure its really broken?

          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