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 message and then application crashing.Help

Error message and then application crashing.Help

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminhelp
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.
  • R Offline
    R Offline
    Raghunandan S
    wrote on last edited by
    #1

    Hi All, I have a client application which is sometimes displaying the message "An unknown error occurred while accessing an unnamed file" before crashing.This message is being displayed very randomly and i could simulate this only once. The scenario was like this: 1) The client and server are running in seaparate machines connected over a network. 2)Send some request commands to server and before the response is obtained,disable the network on client's side. The message "An unknown error occurred while accessing an unnamed file" was displayed and on clicking ok the application crashed.There is no log of this crash also.Can some one tell me whether this related to CArchive and what should i do to avoid this or what protection code should i add to avoid crash. The function CSocket::OnClose() is getting called immediately when the network is being diabled.But this function is not getting called when the above message is displayed and in such situation the application is crashing. Thanks in advance Regards Raghu

    A 1 Reply Last reply
    0
    • R Raghunandan S

      Hi All, I have a client application which is sometimes displaying the message "An unknown error occurred while accessing an unnamed file" before crashing.This message is being displayed very randomly and i could simulate this only once. The scenario was like this: 1) The client and server are running in seaparate machines connected over a network. 2)Send some request commands to server and before the response is obtained,disable the network on client's side. The message "An unknown error occurred while accessing an unnamed file" was displayed and on clicking ok the application crashed.There is no log of this crash also.Can some one tell me whether this related to CArchive and what should i do to avoid this or what protection code should i add to avoid crash. The function CSocket::OnClose() is getting called immediately when the network is being diabled.But this function is not getting called when the above message is displayed and in such situation the application is crashing. Thanks in advance Regards Raghu

      A Offline
      A Offline
      Antony M Kancidrowski
      wrote on last edited by
      #2

      Have you tried putting try and catch around your socket code? In doing so you may be able to get a better idea of the exception. Ant. I'm hard, yet soft.
      I'm coloured, yet clear.
      I'm fruity and sweet.
      I'm jelly, what am I? Muse on it further, I shall return!
      - David Williams (Little Britain)

      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