473,385 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

windows service.

anyone have problems w/ multiple threads in a windows service? also, how can
you debug a windows service?

tia,

steve
Nov 21 '05 #1
5 1048

"steve" <a@b.com> wrote in message
news:10*************@corp.supernews.com...
anyone have problems w/ multiple threads in a windows service? also, how can you debug a windows service?


How many times do you plan on asking this question? If you haven't gotten
answers you like, please be more specific in what you want to know.
Nov 21 '05 #2
sorry jeff,

i posted it two times prior but never saw either show up in the ng...this
one did. i guess the answer to your question is: "as many times as it takes
before i see it in the ng and can follow/read any responses i get."

;^)
"Jeff Johnson [MVP: VB]" <i.***@enough.spam> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
|
| "steve" <a@b.com> wrote in message
| news:10*************@corp.supernews.com...
|
| > anyone have problems w/ multiple threads in a windows service? also, how
| can
| > you debug a windows service?
|
| How many times do you plan on asking this question? If you haven't gotten
| answers you like, please be more specific in what you want to know.
|
|
Nov 21 '05 #3
"steve" <a@b.com> skrev i en meddelelse
news:10*************@corp.supernews.com...
anyone have problems w/ multiple threads in a windows service?
Nope.
also, how can you debug a windows service?


You need to register and start the service outside VS.NET (or using the
VS.NET's Server Explorer.) Then attach the debugger, or write the following
line in the service code to launch the debugger:

Debugger.Launch()

Alternatively write it like this, to only launch the debugger in Debug
builds:

#If DEBUG Then
Debugger.Launch()
#End If

See also:

http://msdn.microsoft.com/library/en...plications.asp

/Jens
--
Jens Christian Mikkelsen
http://www.jcmikkelsen.dk
Nov 21 '05 #4

"steve" <a@b.com> wrote in message
news:10*************@corp.supernews.com...
sorry jeff,

i posted it two times prior but never saw either show up in the ng...this
one did. i guess the answer to your question is: "as many times as it takes before i see it in the ng and can follow/read any responses i get."


Ah. You might want to look for your earlier posts, because you have received
replies.
Nov 21 '05 #5
thanks! exactly what i needed!
"Jens Christian Mikkelsen" <je*********@jcmikkelsenNoSpamPlease.dk> wrote in
message news:eu**************@TK2MSFTNGP10.phx.gbl...
| "steve" <a@b.com> skrev i en meddelelse
| news:10*************@corp.supernews.com...
| > anyone have problems w/ multiple threads in a windows service?
|
| Nope.
|
| > also, how can you debug a windows service?
|
| You need to register and start the service outside VS.NET (or using the
| VS.NET's Server Explorer.) Then attach the debugger, or write the
following
| line in the service code to launch the debugger:
|
| Debugger.Launch()
|
| Alternatively write it like this, to only launch the debugger in Debug
| builds:
|
| #If DEBUG Then
| Debugger.Launch()
| #End If
|
| See also:
|
|
http://msdn.microsoft.com/library/en...plications.asp
|
| /Jens
|
|
| --
| Jens Christian Mikkelsen
| http://www.jcmikkelsen.dk
|
|
Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Michael Riggio | last post by:
Is there a way to have a windows service instantiate a class that is a web service, which will then be accessible to clients via HTTP? Thanks, -Mike
1
by: Artur Kowalski | last post by:
I have a NotifyIcon in my Windows Service project and I am trying to add a ContextMenu to this NotifyIcon or use some of the mouse events. Everything isn't working. I think so base class of the...
9
by: SP | last post by:
Hi All, I wrote a windows service which is supposed to stop after specified amount of time. I am calling OnStop() after specified time. OnStop() methods executed but I dont see the service...
1
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm...
0
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server -...
3
by: Doug Bailey | last post by:
I am trying to control a Windows Service via a Web Service interface. (I am developing in .NET2003) I am using the ServiceController object which allows me to read the state of the services with...
2
by: deko | last post by:
When to use a privileged user thread rather than a windows service? That's the question raised in a previous post . It was suggested that if the service needs to interact with a WinForms app...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
1
by: =?Utf-8?B?TWFuanJlZSBHYXJn?= | last post by:
Hi, I created a web service that I want to host in windows service. The problem is that if I host it as windows service it does not use the configuration file. I have to define the binding,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.