[Insight-developers] Win32 Multithreader

Miller, James V (Research) millerjv@crd.ge.com
Thu, 18 Apr 2002 14:50:14 -0400


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C1E709.E009DEEF
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C1E709.E009DEEF"


------_=_NextPart_001_01C1E709.E009DEEF
Content-Type: text/plain;
	charset="iso-8859-1"

I changed the calls in MultiThreader for the Windows to use _beginthreadex instead of using
CreateThread. CreateThread is supposed to have problems managing the C runtime library and exceptions
thrown
within threads.  _beginthreadex is supposed to properly manage the C runtime library and exceptions
thrown within threads.
 
I don't believe we have ever had a problem using CreateThread but I thought we should be safe.
 

Jim Miller 
_____________________________________
Visualization & Computer Vision
GE Research
Bldg. KW, Room C218B
P.O. Box 8, Schenectady NY 12301

millerjv@research.ge.com <mailto:millerjv@research.ge.com> 

james.miller@research.ge.com
(518) 387-4005, Dial Comm: 8*833-4005, 
Cell: (518) 505-7065, Fax: (518) 387-6981 

 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

------_=_NextPart_001_01C1E709.E009DEEF
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=303534218-18042002><FONT size=2>I changed the calls in 
MultiThreader for the Windows to use _beginthreadex instead of using 
CreateThread. CreateThread is supposed to have problems managing the C runtime 
library and exceptions thrown</FONT></SPAN></DIV>
<DIV><SPAN class=303534218-18042002><FONT size=2>within threads.&nbsp; 
_beginthreadex is supposed to properly manage the C runtime library and 
exceptions</FONT></SPAN></DIV>
<DIV><SPAN class=303534218-18042002><FONT size=2>thrown within 
threads.</FONT></SPAN></DIV>
<DIV><SPAN class=303534218-18042002><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=303534218-18042002><FONT size=2>I don't believe we have ever 
had a problem using CreateThread but I thought we should be 
safe.</FONT></SPAN></DIV>
<DIV><SPAN class=303534218-18042002></SPAN>&nbsp;</DIV>
<DIV class=Section1>
<P style="MARGIN: 0in 0in 0pt"><B><SPAN 
style="COLOR: navy; FONT-FAMILY: 'Comic Sans MS'">Jim Miller</SPAN></B> 
<BR><B><I><SPAN 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: Arial">_____________________________________</SPAN></I></B><BR><EM><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">Visualization &amp; 
Computer Vision</SPAN></EM><I><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial"><BR><EM>GE 
Research</EM><BR><EM>Bldg. KW, Room C218B</EM><BR><EM>P.O. Box 8, Schenectady NY 
12301</EM><BR><BR></SPAN></I><EM><U><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: blue"><A 
href="mailto:millerjv@research.ge.com">millerjv@research.ge.com</A></SPAN></U></EM></P>
<P style="MARGIN: 0in 0in 0pt"><EM><U><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: blue">james.miller@research.ge.com</SPAN></U></EM><BR><I><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">(518) 387-4005, Dial 
Comm: 8*833-4005, </SPAN></I><BR><I><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">Cell: (518) 505-7065, 
Fax: (518) 387-6981</SPAN></I> </P>
<P class=MsoNormal>&nbsp;<?xml:namespace prefix = o ns = 
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></P></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------_=_NextPart_001_01C1E709.E009DEEF--

------_=_NextPart_000_01C1E709.E009DEEF
Content-Type: application/octet-stream;
	name="James Miller (E-mail).vcf"
Content-Disposition: attachment;
	filename="James Miller (E-mail).vcf"

BEGIN:VCARD
VERSION:2.1
N:Miller;James
FN:James Miller (E-mail)
ORG:GE Reseach;Imaging Technologies
TEL;WORK;VOICE:(518) 387-4005
TEL;WORK;VOICE:*833-4005
TEL;CELL;VOICE:(518) 505-7065
TEL;WORK;FAX:(518) 387-6981
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;Visualization and Computer Vision;BLDG KW, RM C218B=0D=0APO Box 8;Schenecta=
dy;NY;12301;United States of America
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Visualization and Computer Vision=0D=0ABLDG KW, RM C218B=0D=0APO Box 8=0D=
=0ASchenectady, NY 12301=0D=0AUnited States of America
EMAIL;PREF;INTERNET:millerjv@research.ge.com
REV:20020405T145025Z
END:VCARD

------_=_NextPart_000_01C1E709.E009DEEF--