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. CSocket Progaramming in MFC

CSocket Progaramming in MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++sysadminhelp
3 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.
  • M Offline
    M Offline
    mbcvamsidhar
    wrote on last edited by
    #1

    Iam Developing Client/Server Application in MFC Using CSockets.I created Server Socket(Serrived From CSocket) and Created One Thread To Listen to the incoming Requests.In Side that thread iam calling Accept()of CSocket.But my Application is Crashing.can you pls help mw regarding this VamsiDhar.MBC SoftwareEngineer

    M 1 Reply Last reply
    0
    • M mbcvamsidhar

      Iam Developing Client/Server Application in MFC Using CSockets.I created Server Socket(Serrived From CSocket) and Created One Thread To Listen to the incoming Requests.In Side that thread iam calling Accept()of CSocket.But my Application is Crashing.can you pls help mw regarding this VamsiDhar.MBC SoftwareEngineer

      M Offline
      M Offline
      M Mehrdad M
      wrote on last edited by
      #2

      There are some questions: 1. when your app. crashes? 2. where your application crashes? 3. Which App crashes?(client or server) You must trace what happening in debug mode in both sides.

      M 1 Reply Last reply
      0
      • M M Mehrdad M

        There are some questions: 1. when your app. crashes? 2. where your application crashes? 3. Which App crashes?(client or server) You must trace what happening in debug mode in both sides.

        M Offline
        M Offline
        mbcvamsidhar
        wrote on last edited by
        #3

        here is my Answers to your question.. My Server Application is crashing when the Application Calls the Thread To start server. Inside the Thread i called the Accept() methodof server Socket.Then it is Crashing.(It is Crashing becoz it is getting AfxGetInstanceHandle() as NULL).May be the way iam Calling the thread is wrong . VamsiDhar.MBC SoftwareEngineer

        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