Error message and then application crashing.Help
-
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
-
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
Have you tried putting
try
andcatch
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)