Click here to Skip to main content
15,887,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
We have a MFC based Server and a Client application that communicates using TCP/IP Sockets. The Server application is a dynamic Calculation engine for Chemical Process plant and does calculations continuously and responds to dynamic inputs from the client. The plant values (structure) are sent every second using a thread with a frequency of 1 second and the values are received in the client using a thread with the same frequency of 1 second. The total size of the data sent through the sockets is around 2500bytes/second. We use socket serialization through a Class derived from CObject for sending and receiving data through sockets. This application runs fine in the LAN and initially the applications were developed to run in LAN Environment.
When I try to run the applications in internet by using a static IP address for the server, the communication is established and the values are send and received successfully. However, when the applications are run for a period of more than 2 hours one of the following result is observed repeatedly.
1. The client application hangs up and shows no response.
2. Both the server and client gets disconnected but runs independently without any data exchange.
3. The client application gets closed which may be after an application crash.
Note: The same applications run for more than 15 hours without any problems in a LAN setup.
Please help me to understand the underlying problem and provide me a solution for this problem.
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 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
Jochen Arndt20-Jun-18 21:04
professionalJochen Arndt20-Jun-18 21:04 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
manoharbalu21-Jun-18 0:55
manoharbalu21-Jun-18 0:55 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
Jochen Arndt21-Jun-18 1:31
professionalJochen Arndt21-Jun-18 1:31 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
manoharbalu21-Jun-18 19:36
manoharbalu21-Jun-18 19:36 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
Victor Nijegorodov21-Jun-18 20:35
Victor Nijegorodov21-Jun-18 20:35 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
Jochen Arndt21-Jun-18 20:55
professionalJochen Arndt21-Jun-18 20:55 
GeneralRe: TCP/IP Socket connectivity issue in Internet Pin
manoharbalu25-Jun-18 19:04
manoharbalu25-Jun-18 19:04 
AnswerRe: TCP/IP Socket connectivity issue in Internet Pin
jschell23-Jun-18 4:52
jschell23-Jun-18 4:52 
Questioninstalled apps Pin
john563217-Jun-18 20:22
john563217-Jun-18 20:22 
AnswerRe: installed apps Pin
Victor Nijegorodov17-Jun-18 20:45
Victor Nijegorodov17-Jun-18 20:45 
GeneralRe: installed apps Pin
john563217-Jun-18 20:53
john563217-Jun-18 20:53 
AnswerRe: installed apps Pin
User 742933817-Jun-18 21:33
professionalUser 742933817-Jun-18 21:33 
GeneralRe: installed apps Pin
john563217-Jun-18 22:58
john563217-Jun-18 22:58 

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.