[mpich-discuss] DuplicateHandle on easy_create

Jayesh Krishna jayesh at mcs.anl.gov
Fri Mar 28 10:17:39 CDT 2008


Hi,
 If you are referring to the use of DuplicateHandle() in sock.c
(src/mpid/common/sock/iocp/sock.c : easy_create()), it is to prevent child
processes from inheriting the socket (if you would like to duplicate the
handle to be used by another process as you mentioned one should use
WSADuplicateSocket()).
 Are you getting any messages from your App verifier ?
 
Regards,
Jayesh
 
  _____  

From: owner-mpich-discuss at mcs.anl.gov
[mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Calin Iaru
Sent: Friday, March 28, 2008 9:35 AM
To: mpich-discuss at mcs.anl.gov
Subject: [mpich-discuss] DuplicateHandle on easy_create


A socket object should not be duplicated using DuplicateHandle. For
reference, see:
http://msdn2.microsoft.com/en-us/library/ms724251(vs.85).aspx
 
The problem is that if an application runs under the control of Application
Verifier, the exception may be reported and it will require expert skills to
trace the cause - use !htrace from WinDbg. Without AppVer, no exception is
raised.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20080328/a52a9da3/attachment.htm>


More information about the mpich-discuss mailing list