Click here to Skip to main content
16,006,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalrunning exes Pin
Dor12-May-02 19:02
Dor12-May-02 19:02 
GeneralRe: running exes Pin
Nish Nishant12-May-02 19:21
sitebuilderNish Nishant12-May-02 19:21 
GeneralRe: running exes Pin
Brian Delahunty12-May-02 23:58
Brian Delahunty12-May-02 23:58 
GeneralRe: running exes Pin
Nish Nishant13-May-02 0:03
sitebuilderNish Nishant13-May-02 0:03 
GeneralRe: running exes Pin
12-May-02 19:23
suss12-May-02 19:23 
GeneralRe: running exes Pin
Mazdak12-May-02 20:01
Mazdak12-May-02 20:01 
GeneralRe: running exes Pin
Jason Henderson13-May-02 3:38
Jason Henderson13-May-02 3:38 
GeneralBad bad service :-( Pin
Nish Nishant12-May-02 19:08
sitebuilderNish Nishant12-May-02 19:08 
I am sunk in misery now. I have a program running as a service. It opens a TCP port [Winsock only/no CSocket stuff] and listens on it. Once a TCP connection is made it does some stuff which included inserting into an MS Access mdb. I use CDatabase for it. Now I have an unusual problem. After 2-3 days of running, the service suddenly starts hogging system resources. My machine crawls to a slow slow pace and I can't even move the mouse properly. If I stop and restart the service, with some difficulty given the system condition, it get's okay again. I am confused as to what's going on. What's funny is that for the last 2 days I haven't even connected to the TCP port. It was simply running blindly. The moment a client connects I use AfxBeginThread to start a thread that processes the TCP connection. Now what I feel is that the accept call fails and thus I am actually starting a thread and passing to it a bad SOCKET. I am not checking whether the SOCKET is okay. But what saddens me no end is the fact that this shouldn't be happening. Wht should accept fail? I thought accept would block and block and block and block and block and block and block till a connection is made Cry | :((

Regards
Sad-Nish Frown | :(


Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.

GeneralRe: Bad bad service :-( Pin
Dor12-May-02 19:17
Dor12-May-02 19:17 
GeneralRe: Bad bad service :-( Pin
Nish Nishant12-May-02 19:24
sitebuilderNish Nishant12-May-02 19:24 
GeneralWanna About Proxy Pin
chaolong12-May-02 16:47
chaolong12-May-02 16:47 
GeneralRe: Wanna About Proxy Pin
Nish Nishant12-May-02 17:22
sitebuilderNish Nishant12-May-02 17:22 
GeneralRe: Wanna About Proxy Pin
chaolong12-May-02 22:59
chaolong12-May-02 22:59 
GeneralRe: Wanna About Proxy Pin
Sameer Maggon12-May-02 21:24
Sameer Maggon12-May-02 21:24 
GeneralRe: Wanna About Proxy Pin
chaolong12-May-02 23:08
chaolong12-May-02 23:08 
GeneralRe: Wanna About Proxy Pin
Sameer Maggon12-May-02 23:06
Sameer Maggon12-May-02 23:06 
GeneralFunction() question... Pin
SilverShalkin12-May-02 14:41
SilverShalkin12-May-02 14:41 
GeneralRe: Function() question... Pin
Rama Krishna Vavilala12-May-02 14:52
Rama Krishna Vavilala12-May-02 14:52 
GeneralRe: Function() question... Pin
Paul M Watt12-May-02 18:56
mentorPaul M Watt12-May-02 18:56 
GeneralRe: Function() question... Pin
Nish Nishant12-May-02 14:56
sitebuilderNish Nishant12-May-02 14:56 
GeneralRe: Function() question... Pin
Christian Graus12-May-02 15:05
protectorChristian Graus12-May-02 15:05 
GeneralRe: Function() question... Pin
Nish Nishant12-May-02 15:01
sitebuilderNish Nishant12-May-02 15:01 
GeneralRe: Function() question... Pin
Christian Graus12-May-02 15:03
protectorChristian Graus12-May-02 15:03 
GeneralRe: Function() question... Pin
Rama Krishna Vavilala12-May-02 15:06
Rama Krishna Vavilala12-May-02 15:06 
GeneralRe: Function() question... Pin
Christian Graus12-May-02 15:12
protectorChristian Graus12-May-02 15:12 

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.