Click here to Skip to main content
16,012,821 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to avoid Esc and Enter Key for Closing Dialog Box Pin
Rajesh R Subramanian29-May-07 3:30
professionalRajesh R Subramanian29-May-07 3:30 
GeneralRe: How to avoid Esc and Enter Key for Closing Dialog Box Pin
_AnsHUMAN_ 29-May-07 3:43
_AnsHUMAN_ 29-May-07 3:43 
GeneralRe: How to avoid Esc and Enter Key for Closing Dialog Box Pin
_AnsHUMAN_ 29-May-07 3:45
_AnsHUMAN_ 29-May-07 3:45 
AnswerRe: How to avoid Esc and Enter Key for Closing Dialog Box Pin
Hamid_RT29-May-07 0:29
Hamid_RT29-May-07 0:29 
AnswerRe: How to avoid Esc and Enter Key for Closing Dialog Box Pin
Roger Stoltz29-May-07 1:35
Roger Stoltz29-May-07 1:35 
AnswerRe: How to avoid Esc and Enter Key for Closing Dialog Box Pin
SandipG 29-May-07 2:16
SandipG 29-May-07 2:16 
AnswerRe: How to avoid Esc and Enter Key for Closing Dialog Box Pin
David Crow29-May-07 3:56
David Crow29-May-07 3:56 
QuestionStrange socket problem Pin
BadKarma28-May-07 23:57
BadKarma28-May-07 23:57 
Hi,

I have a very strange problem concerning the sockets I use in my applications.
I have written a Server application which accepts client connections. Therefore I have created a listen socket. In the OnAccept event of that listen socket I accept the incoming connection by creating a new socket and calling its accept member. Nothing strange here and everything works well.

I'm also using ado to connect to a SQL database to write log-ins and the like. But in a single customer case the SQL server is placed on a different PC. This normally doesn't give me much trouble, but sometimes under heavy network load the database-connection to this PC is lost. In that case I close the connection and create a new one. To simulate this I have setup a test PC with SQL on and I remove this PC from the network, not my development PC. After the reconnect the PC, the connection is restored and the database can be used again

But now for the strange part. In some cases, 1 out of 5-6 test, I can't accept any new clients. Using the netstat command i can see that the port is still open. It even accept new incoming request (upto 5) but I never get in the OnAccept function so I can't accept new Clients. How come that even though the TPC-IP protocol of the machine sees the new incoming request I don't get notified any more.

Any help on this matter will be highly appreciated.

codito ergo sum

AnswerRe: Strange socket problem Pin
Roger Stoltz29-May-07 3:02
Roger Stoltz29-May-07 3:02 
GeneralRe: Strange socket problem Pin
BadKarma29-May-07 4:06
BadKarma29-May-07 4:06 
GeneralRe: Strange socket problem Pin
Roger Stoltz29-May-07 4:18
Roger Stoltz29-May-07 4:18 
GeneralRe: Strange socket problem Pin
BadKarma29-May-07 4:57
BadKarma29-May-07 4:57 
GeneralRe: Strange socket problem Pin
Roger Stoltz29-May-07 5:34
Roger Stoltz29-May-07 5:34 
GeneralRe: Strange socket problem Pin
Moak28-Jun-07 5:52
Moak28-Jun-07 5:52 
Question#$%%^^% EVC++! - why bitmap won't save? Pin
charlieg28-May-07 23:56
charlieg28-May-07 23:56 
AnswerRe: #$%%^^% EVC++! - why bitmap won't save? Pin
Nelek29-May-07 1:28
protectorNelek29-May-07 1:28 
QuestionWhy dialog doesn't repond to tab key Pin
LiYS28-May-07 23:38
LiYS28-May-07 23:38 
AnswerRe: Why dialog doesn't repond to tab key Pin
nitin328-May-07 23:46
nitin328-May-07 23:46 
AnswerRe: Why dialog doesn't repond to tab key Pin
Hamid_RT29-May-07 0:08
Hamid_RT29-May-07 0:08 
GeneralRe: Why dialog doesn't repond to tab key Pin
Rajesh R Subramanian29-May-07 4:01
professionalRajesh R Subramanian29-May-07 4:01 
Questionmemory heap problem Pin
Moonis Ahmed28-May-07 23:27
Moonis Ahmed28-May-07 23:27 
AnswerRe: memory heap problem Pin
Roger Stoltz28-May-07 23:40
Roger Stoltz28-May-07 23:40 
AnswerRe: memory heap problem Pin
Matthew Faithfull28-May-07 23:48
Matthew Faithfull28-May-07 23:48 
AnswerRe: memory heap problem Pin
Stephen Hewitt29-May-07 14:01
Stephen Hewitt29-May-07 14:01 
Questionvideo streaming Pin
tyagineha28-May-07 23:13
tyagineha28-May-07 23:13 

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.