Click here to Skip to main content
15,912,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Static. c++ Pin
pba_13-Jul-00 5:51
pba_13-Jul-00 5:51 
GeneralMDI with multiple DOC types (The view for one of them must be an assistant) Pin
Joan Murt11-Jul-00 8:38
sussJoan Murt11-Jul-00 8:38 
GeneralRe: MDI with multiple DOC types (The view for one of them must be an assistant) Pin
Joan Murt17-Jul-00 14:21
sussJoan Murt17-Jul-00 14:21 
QuestionHow can I detect if any sound is currently playing? Pin
Phil11-Jul-00 8:06
Phil11-Jul-00 8:06 
GeneralSocket problem Pin
Ganendran11-Jul-00 6:00
Ganendran11-Jul-00 6:00 
Generalbrowse for folder Pin
Member 403211-Jul-00 4:53
Member 403211-Jul-00 4:53 
GeneralRe: browse for folder Pin
Paolo Messina14-Jul-00 2:42
professionalPaolo Messina14-Jul-00 2:42 
GeneralMFC Socket problem in Windows2000 environment Pin
Ganendran10-Jul-00 12:03
Ganendran10-Jul-00 12:03 
Subject: MFC Socket problem in Windows2000 environment

Client makes a connection to the Server using CSocket.

Server will be listening for incoming connections from the Client.

When a Client makes a connection to the Server the following takes place in the Server:
1) Calls CSocket::Detach() function to detach the socket handle.
2) Closes the socket handle.
3) Spawns a secondary process to handle the real communication between Server and the Client by passing the socket handle.

Secondary process attaches (using CSocket::Attach()) the socket handle to a new socket inorder to communicate with the Client.

The problem is:
When the Secondary process attaches the socket, a socket notification is sent to the Server.
Then the Server crashes because at that time the socket handle is null in the server as we have already closed it after detaching.

This is prevalent in Windows2000 Server machine which is also a dual processor. We are using MFC sockets for the communication. (VC 6 Environment)
This is running fine in Windows NT environment.

We would like to know why this is happening in Windows2000 Server environment and any solutions to it.

Thanks
Gane



General(Newbie) Help with doc/view Pin
Peter10-Jul-00 12:01
Peter10-Jul-00 12:01 
GeneralRe: (Newbie) Help with doc/view Pin
pba_13-Jul-00 5:47
pba_13-Jul-00 5:47 
QuestionMake copy of DIBSection ? Pin
Christian8-Jul-00 3:23
Christian8-Jul-00 3:23 
GeneralPrinting Dialog Box Pin
etoth17-Jul-00 12:31
etoth17-Jul-00 12:31 
GeneralRe: Printing Dialog Box Pin
Mike Dunn7-Jul-00 17:51
Mike Dunn7-Jul-00 17:51 
GeneralSending the focus back to another window Pin
Mauj7-Jul-00 8:36
Mauj7-Jul-00 8:36 
GeneralRe: Sending the focus back to another window Pin
Yaron8-Jul-00 23:02
Yaron8-Jul-00 23:02 
GeneralRead a single serial byte into COMM-Port Pin
Dieter Wolf7-Jul-00 8:34
sussDieter Wolf7-Jul-00 8:34 
GeneralRe: Read a single serial byte into COMM-Port Pin
Mark Jones19-Jul-00 5:05
Mark Jones19-Jul-00 5:05 
GeneralFunction Key usage in Dialog Boxes. Pin
Rick Fishwick7-Jul-00 8:26
sussRick Fishwick7-Jul-00 8:26 
GeneralRe: Function Key usage in Dialog Boxes. Pin
Member 45881447-Jul-00 11:12
Member 45881447-Jul-00 11:12 
GeneralFunction Key usage in Dialog Boxes. Pin
Rick Fishwick7-Jul-00 8:26
sussRick Fishwick7-Jul-00 8:26 
GeneralRe: Function Key usage in Dialog Boxes. Pin
Kurt10-Jul-00 0:00
Kurt10-Jul-00 0:00 
GeneralClass view window for VC++ 6.0 Pin
Kirill Sherman7-Jul-00 7:22
sussKirill Sherman7-Jul-00 7:22 
GeneralRe: Class view window for VC++ 6.0 Pin
Paolo Messina7-Jul-00 8:18
professionalPaolo Messina7-Jul-00 8:18 
GeneralC++ "friend" related Pin
pba_7-Jul-00 7:12
pba_7-Jul-00 7:12 
GeneralRe: C++ Pin
Kirill Sherman7-Jul-00 7:35
sussKirill Sherman7-Jul-00 7:35 

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.