Click here to Skip to main content
15,896,063 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionC++ Run Time Error "Stack around the variable 'Student' was corrupted." Pin
Umad Ahmad27-Jun-18 1:45
Umad Ahmad27-Jun-18 1:45 
AnswerRe: C++ Run Time Error "Stack around the variable 'Student' was corrupted." Pin
Richard MacCutchan27-Jun-18 2:36
mveRichard MacCutchan27-Jun-18 2:36 
QuestionConvert C++ code to python Pin
Megha Bhamare27-Jun-18 1:26
Megha Bhamare27-Jun-18 1:26 
AnswerRe: Convert C++ code to python Pin
Richard MacCutchan27-Jun-18 2:30
mveRichard MacCutchan27-Jun-18 2:30 
QuestionHow to call a 'C' program function from VB code ? Pin
Sakthiu26-Jun-18 3:31
Sakthiu26-Jun-18 3:31 
AnswerRe: How to call a 'C' program function from VB code ? Pin
Victor Nijegorodov26-Jun-18 4:04
Victor Nijegorodov26-Jun-18 4:04 
GeneralRe: How to call a 'C' program function from VB code ? Pin
Sakthiu26-Jun-18 4:08
Sakthiu26-Jun-18 4:08 
QuestionRe: How to call a 'C' program function from VB code ? Pin
David Crow26-Jun-18 4:38
David Crow26-Jun-18 4:38 
AnswerRe: How to call a 'C' program function from VB code ? Pin
Sakthiu26-Jun-18 4:44
Sakthiu26-Jun-18 4:44 
AnswerRe: How to call a 'C' program function from VB code ? Pin
David Crow26-Jun-18 4:49
David Crow26-Jun-18 4:49 
AnswerRe: How to call a 'C' program function from VB code ? Pin
Randor 26-Jun-18 5:44
professional Randor 26-Jun-18 5:44 
PraiseRe: How to call a 'C' program function from VB code ? Pin
«_Superman_»1-Jul-18 18:28
professional«_Superman_»1-Jul-18 18:28 
QuestionDIALOG WITH MULTIPLE THREADS Pin
Member 1142662425-Jun-18 7:52
Member 1142662425-Jun-18 7:52 
AnswerRe: DIALOG WITH MULTIPLE THREADS Pin
Randor 25-Jun-18 8:22
professional Randor 25-Jun-18 8:22 
AnswerRe: DIALOG WITH MULTIPLE THREADS Pin
Victor Nijegorodov25-Jun-18 8:52
Victor Nijegorodov25-Jun-18 8:52 
QuestionCan't automate Excel from Windows 10 Pin
garyflet21-Jun-18 8:39
garyflet21-Jun-18 8:39 
AnswerRe: Can't automate Excel from Windows 10 Pin
Victor Nijegorodov21-Jun-18 20:59
Victor Nijegorodov21-Jun-18 20:59 
AnswerRe: Can't automate Excel from Windows 10 Pin
_Flaviu21-Jun-18 22:43
_Flaviu21-Jun-18 22:43 
Questionlooking for 3rd party library to "create overlay guided user experiences" ? Pin
Maximilien21-Jun-18 8:17
Maximilien21-Jun-18 8:17 
QuestionTCP/IP Socket connectivity issue in Internet Pin
manoharbalu19-Jun-18 1:44
manoharbalu19-Jun-18 1:44 
AnswerRe: TCP/IP Socket connectivity issue in Internet Pin
Jochen Arndt19-Jun-18 2:52
professionalJochen Arndt19-Jun-18 2:52 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
manoharbalu19-Jun-18 3:44
manoharbalu19-Jun-18 3:44 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
Jochen Arndt19-Jun-18 4:33
professionalJochen Arndt19-Jun-18 4:33 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
manoharbalu20-Jun-18 19:02
manoharbalu20-Jun-18 19:02 
Thanks for your reply.

Just to mention that I am a novice to socket programming.

As per your suggestion, I changed the receive at the client side by removing the thread and added the OnReceive() event function to receive data from the server. Whenever OnReceive() is called, I called the Receive() to receive the data from the server. Also I removed the Serialization from both the server and client and send the data as a normal packet.

However when I run the server and client and logged the data received time to a file by adding the code to log the current time inside the OnReceive() function of the client, it had run successfully for nearly 10 hours. After that there is no logging of time in the file seen, and I assume that the connection is disconnected between the server and the client and hence the OnReceive() event was not triggered. Please guide me how to handle this and establish a continous connection. Also How to detect if the connection is lost?
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
Jochen Arndt20-Jun-18 21:04
professionalJochen Arndt20-Jun-18 21:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.