[Mono-list] System.Threading error

Jerkins, Phillip Phillip.Jerkins@morgankeegan.com
Wed, 5 Feb 2003 12:27:56 -0600


This is a multi-part message in MIME format.

------_=_NextPart_001_01C2CD44.4D77C8E2
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_002_01C2CD44.4D77C8E2"


------_=_NextPart_002_01C2CD44.4D77C8E2
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

According to the class status page, System.Threading is 100% finished.
However, I'm getting an error in mono that I don't get in M$'s runtime:
=20
I first get a dialog box that says:
  ** ERROR **: file threads.c: line 1157
(ves_icall_System_Threading_Thread_Abort): should not be reached
  aborting...
=20
Then, the following prints on the console (it's a console test app):
  This application has requested the Runtime to terminate it in an
unusual way.
  Please contact the application's support team for more information.
=20
I'm having to use these features of System.Threading b/c I'm sending out
a request over UDP that may/may not get a response.  It's part of a
(very small) contribution I'm trying to make to
System.Data.SqlClient.SqlConnection.
=20
I'm attaching the source that causes it.
=20
Thanks!
=20
Phil Jerkins
=20


*************************************************************************=
*************************
Morgan Keegan & Co., Inc. DOES NOT ACCEPT ORDERS AND/OR=20
INSTRUCTIONS REGARDING YOUR ACCOUNT BY E-MAIL.  Transactional details=20
do not supersede normal trade confirmations or statements.  The informati=
on=20
contained in this transmission is privileged and confidential. It is inte=
nded for the use of=20
the individual or entity named above. The information contained herein is=
 based on=20
sources we believe reliable but is not considered all-inclusive. Opinions=
 are our current=20
opinions only and are subject to change without notice.  Offerings are su=
bject to prior=20
sale and/or change in price.  Prices, quotes, rates and yields are subjec=
t to change=20
without notice.  Morgan Keegan & Co., Inc., member NYSE, NASD and SIPC, i=
s a=20
registered broker-dealer subsidiary of Regions Financial Corporation.  In=
vestments are=20
NOT FDIC INSURED, NOT BANK GUARANTEED and MAY LOSE VALUE.  Morgan=20
Keegan & Co., Inc. reserves the right to monitor all electronic correspon=
dence.


http://www.morgankeegan.com
*************************************************************************=
*************************

------_=_NextPart_002_01C2CD44.4D77C8E2
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:=
schemas-microsoft-com:office:word" xmlns=3D"http://www.w3.org/TR/REC-html=
40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-asci=
i">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml@01C2CD12.02808E00">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Verdana;
	panose-1:2 11 6 4 3 5 4 4 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:536871559 0 0 0 415 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
	{margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:windowtext;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple style=3D'tab-interval:.5in'=
>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size=
:10.0pt;
font-family:Arial'>According to the class status page, <span class=3DSpel=
lE>System.Threading</span>
is 100% finished.<span style=3D'mso-spacerun:yes'>&nbsp; </span>However, =
I&#8217;m
getting an error in mono that I don&#8217;t get in <span class=3DSpellE>M=
$&#8217;s</span>
runtime:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size=
:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size=
:10.0pt;
font-family:Arial'>I first get a dialog box that says:<o:p></o:p></span><=
/font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size=
:10.0pt;
font-family:Arial'><span style=3D'mso-spacerun:yes'>&nbsp; </span>** ERRO=
R **: file <span
class=3DSpellE>threads.c</span>: line 1157 (<span class=3DSpellE>ves_ical=
l_System_Threading_Thread_Abort</span>):
should not be reached<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size=
:10.0pt;
font-family:Arial'><span style=3D'mso-spacerun:yes'>&nbsp; </span><span c=
lass=3DGramE>aborting</span>...<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size=
:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size=
:10.0pt;
font-family:Arial'>Then, the following prints on the console (it&#8217;s =
a
console test app):<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size=
:10.0pt;
font-family:Arial'><span style=3D'mso-spacerun:yes'>&nbsp; </span>This ap=
plication has
requested the Runtime to terminate it in an unusual way.<o:p></o:p></span=
></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size=
:10.0pt;
font-family:Arial'><span style=3D'mso-spacerun:yes'>&nbsp; </span>Please =
contact the
application's support team for more information.<o:p></o:p></span></font>=
</p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size=
:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 face=3DArial><spa=
n
style=3D'font-size:10.0pt;font-family:Arial'>I&#8217;m having</span></fon=
t></span><font
size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>=
 to use
these features of <span class=3DSpellE>System.Threading</span> b/c I&#821=
7;m
sending out a request over UDP that may/may not get a response.<span
style=3D'mso-spacerun:yes'>&nbsp; </span>It&#8217;s part of a (very small=
)
contribution I&#8217;m trying to make to <span class=3DSpellE>System.Data=
=2ESqlClient.SqlConnection</span>.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size=
:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size=
:10.0pt;
font-family:Arial'>I&#8217;m attaching the source that causes it.<o:p></o=
:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size=
:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size=
:10.0pt;
font-family:Arial'>Thanks!<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size=
:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoAutoSig><font size=3D2 face=3DVerdana><span style=3D'font-s=
ize:10.0pt;
font-family:Verdana;mso-no-proof:yes'>Phil Jerkins<o:p></o:p></span></fon=
t></p>

<p class=3DMsoAutoSig><font size=3D3 face=3D"Times New Roman"><span style=
=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<FONT SIZE=3D3 COLOR=3DBLUE><PRE>****************************************=
**********************************************************
Morgan Keegan & Co., Inc. DOES NOT ACCEPT ORDERS AND/OR=20
INSTRUCTIONS REGARDING YOUR ACCOUNT BY E-MAIL.  Transactional details=20
do not supersede normal trade confirmations or statements.  The informati=
on=20
contained in this transmission is privileged and confidential. It is inte=
nded for the use of=20
the individual or entity named above. The information contained herein is=
 based on=20
sources we believe reliable but is not considered all-inclusive. Opinions=
 are our current=20
opinions only and are subject to change without notice.  Offerings are su=
bject to prior=20
sale and/or change in price.  Prices, quotes, rates and yields are subjec=
t to change=20
without notice.  Morgan Keegan & Co., Inc., member NYSE, NASD and SIPC, i=
s a=20
registered broker-dealer subsidiary of Regions Financial Corporation.  In=
vestments are=20
NOT FDIC INSURED, NOT BANK GUARANTEED and MAY LOSE VALUE.  Morgan=20
Keegan & Co., Inc. reserves the right to monitor all electronic correspon=
dence.


http://www.morgankeegan.com
*************************************************************************=
*************************
</PRE></FONT>
</body>

</html>
=00

------_=_NextPart_002_01C2CD44.4D77C8E2--

------_=_NextPart_001_01C2CD44.4D77C8E2
Content-Type: application/octet-stream;
	name="SqlPing.cs"
Content-Transfer-Encoding: base64
Content-Description: SqlPing.cs
Content-Disposition: attachment;
	filename="SqlPing.cs"

DQp1c2luZyBTeXN0ZW07DQp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnM7DQp1c2luZyBTeXN0ZW0u
TmV0Ow0KdXNpbmcgU3lzdGVtLk5ldC5Tb2NrZXRzOw0KdXNpbmcgU3lzdGVtLlRleHQ7DQp1c2lu
ZyBTeXN0ZW0uVGV4dC5SZWd1bGFyRXhwcmVzc2lvbnM7DQp1c2luZyBTeXN0ZW0uVGhyZWFkaW5n
Ow0KDQpwdWJsaWMgY2xhc3MgSGlkZGVuT3JPbGRTZXJ2ZXJFeGNlcHRpb24gOiBFeGNlcHRpb24g
ew0KCXB1YmxpYyBvdmVycmlkZSBzdHJpbmcgTWVzc2FnZSB7IGdldCB7IHJldHVybiAiVGhlIHNl
cnZlciBpcyBlaXRoZXIgaGlkZGVuIG9yIGlzIG9sZGVyIHRoYW4gTWljcm9zb2Z0IFNRTCBTZXJ2
ZXIgMjAwMCI7IH0gfQ0KfQ0KcHVibGljIGNsYXNzIFRjcE5vdFN1cHBvcnRlZEV4Y2VwdGlvbiA6
IEV4Y2VwdGlvbiB7DQoJcHVibGljIG92ZXJyaWRlIHN0cmluZyBNZXNzYWdlIHsgZ2V0IHsgcmV0
dXJuICJUaGUgc2VydmVyIGlzIG5vdCBjb25maWd1cmVkIGZvciBzdXBwb3J0IFRDUCBhY2Nlc3Mu
Ij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