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. CAsyncSocket-debug assertion failed

CAsyncSocket-debug assertion failed

Scheduled Pinned Locked Moved C / C++ / MFC
c++sharepointcomdebugginghelp
2 Posts 2 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
    Lost User
    wrote on last edited by
    #1

    Hi ! I am using VC++ 6.0. SP 4.0. , my COM application uses CAsyncSocket , and when I try to close the socket (method Close()), I get "Debug assertion failed" File:sockcode.cpp Line:483 // this is "CAsyncSocket::KillSocket(m_hSocket, this);" There was a solution to a similar problem in MSDN article (Article ID: Q139693 ) but I tried this and in my case it doesn't work. I am at a loss. What can I do about it ? Thanx in advance.

    R 1 Reply Last reply
    0
    • L Lost User

      Hi ! I am using VC++ 6.0. SP 4.0. , my COM application uses CAsyncSocket , and when I try to close the socket (method Close()), I get "Debug assertion failed" File:sockcode.cpp Line:483 // this is "CAsyncSocket::KillSocket(m_hSocket, this);" There was a solution to a similar problem in MSDN article (Article ID: Q139693 ) but I tried this and in my case it doesn't work. I am at a loss. What can I do about it ? Thanx in advance.

      R Offline
      R Offline
      Remus Lazar
      wrote on last edited by
      #2

      Try something like this closesocket(m_hSocket) where m_hSocket is data member from CAsyncSocket.

      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