Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > The thread '<No Name>' (0xdc0) has exited with code 0 (0x0).

Reply
Thread Tools

The thread '<No Name>' (0xdc0) has exited with code 0 (0x0).

 
 
A.M-SG
Guest
Posts: n/a
 
      11-30-2005
Hi,

When I run my web service application in VS2005 IDE and then watch the
output window, almost after any method call, I have something like this
message in my output window:

The thread '<No Name>' (0xdc0) has exited with code 0 (0x0).

I tried to get the thread number by putting this line at the top of my web
methid:
System.Diagnostics.Debug.WriteLine(string.Format(" Thread info: {0},
{1}",System.Threading.Thread.CurrentThread.Name,Sy stem.Threading.Thread.CurrentThread.ManagedThreadI d));

But it retuens different thread number. How can I get the thread number that
IDE's output window message shows?

Thank you,

Alan





 
Reply With Quote
 
 
 
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      12-01-2005
Hi Alan,

Welcome to webservice newsgroup.
From your description you're encountering some unexpected exeption when
calling a asp.net webservice... As for the threadID difference between the
IDE debugger output one and the Thread.ManagedThreadID, it is because the
Thread.Managed is an unique ID used by managed world to idenitify a
thread execting .net code while the debugger window's threadID maybe a
operating system scope thread ID(native thread....), their actual relation
ship is determiend by the internal implementation of CLR and most probably
they're different ....

Is your webservice's webmethod doing any particular things which will throw
any unhandled exception ?

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)







--------------------
| From: "A.M-SG" <>
| Subject: The thread '<No Name>' (0xdc0) has exited with code 0 (0x0).
| Date: Wed, 30 Nov 2005 16:00:19 -0500
| Lines: 24
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <>
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
| NNTP-Posting-Host: hse-toronto-ppp3485030.sympatico.ca 65.92.98.153
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservic es:30985
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
|
| Hi,
|
| When I run my web service application in VS2005 IDE and then watch the
| output window, almost after any method call, I have something like this
| message in my output window:
|
| The thread '<No Name>' (0xdc0) has exited with code 0 (0x0).
|
| I tried to get the thread number by putting this line at the top of my
web
| methid:
| System.Diagnostics.Debug.WriteLine(string.Format(" Thread info: {0},
|
{1}",System.Threading.Thread.CurrentThread.Name,Sy stem.Threading.Thread.Curr
entThread.ManagedThreadId));
|
| But it retuens different thread number. How can I get the thread number
that
| IDE's output window message shows?
|
| Thank you,
|
| Alan
|
|
|
|
|
|

 
Reply With Quote
 
 
 
 
A.M-SG
Guest
Posts: n/a
 
      12-01-2005
Hi Steven,

Is there any way to have the "operating system scope thread ID" within my
web service code?
I need that to track the creation and destruction of threads within my web
method code.

Thank you,
Alan


"Steven Cheng[MSFT]" <> wrote in message
news:...
> Hi Alan,
>
> Welcome to webservice newsgroup.
> From your description you're encountering some unexpected exeption when
> calling a asp.net webservice... As for the threadID difference between
> the
> IDE debugger output one and the Thread.ManagedThreadID, it is because the
> Thread.Managed is an unique ID used by managed world to idenitify a
> thread execting .net code while the debugger window's threadID maybe a
> operating system scope thread ID(native thread....), their actual relation
> ship is determiend by the internal implementation of CLR and most probably
> they're different ....
>
> Is your webservice's webmethod doing any particular things which will
> throw
> any unhandled exception ?
>
> Thanks,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>
>
>
>
>
>
> --------------------
> | From: "A.M-SG" <>
> | Subject: The thread '<No Name>' (0xdc0) has exited with code 0 (0x0).
> | Date: Wed, 30 Nov 2005 16:00:19 -0500
> | Lines: 24
> | X-Priority: 3
> | X-MSMail-Priority: Normal
> | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
> | X-RFC2646: Format=Flowed; Original
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
> | Message-ID: <>
> | Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
> | NNTP-Posting-Host: hse-toronto-ppp3485030.sympatico.ca 65.92.98.153
> | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
> | Xref: TK2MSFTNGXA02.phx.gbl
> microsoft.public.dotnet.framework.aspnet.webservic es:30985
> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
> |
> | Hi,
> |
> | When I run my web service application in VS2005 IDE and then watch the
> | output window, almost after any method call, I have something like this
> | message in my output window:
> |
> | The thread '<No Name>' (0xdc0) has exited with code 0 (0x0).
> |
> | I tried to get the thread number by putting this line at the top of my
> web
> | methid:
> | System.Diagnostics.Debug.WriteLine(string.Format(" Thread info: {0},
> |
> {1}",System.Threading.Thread.CurrentThread.Name,Sy stem.Threading.Thread.Curr
> entThread.ManagedThreadId));
> |
> | But it retuens different thread number. How can I get the thread number
> that
> | IDE's output window message shows?
> |
> | Thank you,
> |
> | Alan
> |
> |
> |
> |
> |
> |
>



 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      12-02-2005
Thanks for your reply Alan,

Of course, we are able to get the unmanaged thread ID, just call the raw
win32 api through PInvoke, the

DWORD GetCurrentThreadId(void);

WIN32 API just help get the current thread ID. However, since I've
mentioned that the underlying thread is managed by CLR runtime, it'll
schedule a underlying operating system thread to work in different
appdomain, so it is possible that the creation time of the underlying win32
thread is not the start of your webservice method executing point....

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "A.M-SG" <>
| References: <>
<>
| Subject: Re: The thread '<No Name>' (0xdc0) has exited with code 0 (0x0).
| Date: Thu, 1 Dec 2005 13:10:37 -0500
| Lines: 95
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <>
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
| NNTP-Posting-Host: 67.71.55.33
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservic es:31005
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
|
| Hi Steven,
|
| Is there any way to have the "operating system scope thread ID" within my
| web service code?
| I need that to track the creation and destruction of threads within my
web
| method code.
|
| Thank you,
| Alan
|
|
| "Steven Cheng[MSFT]" <> wrote in message
| news:...
| > Hi Alan,
| >
| > Welcome to webservice newsgroup.
| > From your description you're encountering some unexpected exeption when
| > calling a asp.net webservice... As for the threadID difference between
| > the
| > IDE debugger output one and the Thread.ManagedThreadID, it is because
the
| > Thread.Managed is an unique ID used by managed world to idenitify a
| > thread execting .net code while the debugger window's threadID maybe a
| > operating system scope thread ID(native thread....), their actual
relation
| > ship is determiend by the internal implementation of CLR and most
probably
| > they're different ....
| >
| > Is your webservice's webmethod doing any particular things which will
| > throw
| > any unhandled exception ?
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| >
| >
| >
| > --------------------
| > | From: "A.M-SG" <>
| > | Subject: The thread '<No Name>' (0xdc0) has exited with code 0 (0x0).
| > | Date: Wed, 30 Nov 2005 16:00:19 -0500
| > | Lines: 24
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | X-RFC2646: Format=Flowed; Original
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | Message-ID: <>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
| > | NNTP-Posting-Host: hse-toronto-ppp3485030.sympatico.ca 65.92.98.153
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet.webservic es:30985
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
| > |
| > | Hi,
| > |
| > | When I run my web service application in VS2005 IDE and then watch the
| > | output window, almost after any method call, I have something like
this
| > | message in my output window:
| > |
| > | The thread '<No Name>' (0xdc0) has exited with code 0 (0x0).
| > |
| > | I tried to get the thread number by putting this line at the top of my
| > web
| > | methid:
| > | System.Diagnostics.Debug.WriteLine(string.Format(" Thread info: {0},
| > |
| >
{1}",System.Threading.Thread.CurrentThread.Name,Sy stem.Threading.Thread.Curr
| > entThread.ManagedThreadId));
| > |
| > | But it retuens different thread number. How can I get the thread
number
| > that
| > | IDE's output window message shows?
| > |
| > | Thank you,
| > |
| > | Alan
| > |
| > |
| > |
| > |
| > |
| > |
| >
|
|
|

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"sgen.exe" exited with a code of 1 =?Utf-8?B?SmltSGVhdmV5?= ASP .Net 0 06-11-2007 07:39 PM
VC++ thread 0xC0C has exited with code 99 (0x63). Raymond Martineau C Programming 1 08-02-2005 06:13 AM
The thread {----} has exited with code 0 (0x0). chuayongquan@hotmail.com C++ 1 07-05-2005 01:11 PM
Problem - program exited with code 0377 Seo Jae Ick C Programming 5 02-16-2004 05:37 AM
The thread '<No Name>' (0x974) has exited with code 0 (0x0) ? Anders Both ASP .Net 1 01-14-2004 07:51 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57