By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,758 Members | 1,264 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,758 IT Pros & Developers. It's quick & easy.

How should I debug this?

P: n/a
..NET 2.0

I'm working on 3 projects in VS2005:
- a windows application project
- dll library project
- windows service

This works like this:
The window form call some methods in the dll library project (.net remoting)
which again calls the actual objects running in the windows service...

I have 3 VS2005 open on my pc, one for each of these projects

Now I've tested some functionality on form and it doesn't work. It is
supposed to send info over to the windows service so it can updated a table
in the database...

I've rebuilt the dll library project and installed it.... while target was
set to Debug, should I change it to Release or?

And how should I debug this.??

Any suggestions are most welcome!

Jeff
Jul 11 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Hi,

"Jeff" <do***@spam.mewrote in message
news:Oo**************@TK2MSFTNGP04.phx.gbl...
.NET 2.0

I'm working on 3 projects in VS2005:
- a windows application project
- dll library project
- windows service

This works like this:
The window form call some methods in the dll library project (.net
remoting) which again calls the actual objects running in the windows
service...

I have 3 VS2005 open on my pc, one for each of these projects

You do not need 3 VS, as a matter of fact you need only two, one for each
executable. Debugging the service could be a little tricky, I do not know
any way to debug the onStart method of it. What I do is start the service
from the services panel and then use Debug/Attach to process to debug the
running of the project.

Jul 11 '07 #2

P: n/a
On Jul 11, 7:56 am, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions.comwrote:
Hi,

"Jeff" <d...@spam.mewrote in message

news:Oo**************@TK2MSFTNGP04.phx.gbl...
.NET 2.0
I'm working on 3 projects in VS2005:
- a windows application project
- dll library project
- windows service
This works like this:
The window form call some methods in the dll library project (.net
remoting) which again calls the actual objects running in the windows
service...
I have 3 VS2005 open on my pc, one for each of these projects

You do not need 3 VS, as a matter of fact you need only two, one for each
executable. Debugging the service could be a little tricky, I do not know
any way to debug the onStart method of it. What I do is start the service
from the services panel and then use Debug/Attach to process to debug the
running of the project.
I've resorted to a hack to debut OnStart before. I simply put a
Thread.Sleep for about 10 seconds, enough time for me to attach the
debugger.

Chris

Jul 11 '07 #3

P: n/a
Hi,

"Chris Dunaway" <du******@gmail.comwrote in message
news:11**********************@m3g2000hsh.googlegro ups.com...
On Jul 11, 7:56 am, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions.comwrote:
>Hi,

"Jeff" <d...@spam.mewrote in message

news:Oo**************@TK2MSFTNGP04.phx.gbl...
.NET 2.0
I'm working on 3 projects in VS2005:
- a windows application project
- dll library project
- windows service
This works like this:
The window form call some methods in the dll library project (.net
remoting) which again calls the actual objects running in the windows
service...
I have 3 VS2005 open on my pc, one for each of these projects

You do not need 3 VS, as a matter of fact you need only two, one for each
executable. Debugging the service could be a little tricky, I do not know
any way to debug the onStart method of it. What I do is start the service
from the services panel and then use Debug/Attach to process to debug the
running of the project.

I've resorted to a hack to debut OnStart before. I simply put a
Thread.Sleep for about 10 seconds, enough time for me to attach the
debugger.
Nice, but you have to be fast, otherwise you will lose it. Also you might
forget to remove it when moved into production.

I do something similar, My OnStart just spraw a thread and then inside I do
all the work, in this case the OnStart has NO code at all.

Jul 11 '07 #4

P: n/a
<"Ignacio Machin \( .NET/ C# MVP \)" <machin TA laceupsolutions.com>>
wrote:

<snip>
I do something similar, My OnStart just spraw a thread and then inside I do
all the work, in this case the OnStart has NO code at all.
How do you manage to spawn a thread without having any code at all?

;)

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jul 11 '07 #5

P: n/a

"Jon Skeet [C# MVP]" <sk***@pobox.comwrote in message
news:MP*********************@msnews.microsoft.com. ..
<"Ignacio Machin \( .NET/ C# MVP \)" <machin TA laceupsolutions.com>>
wrote:

<snip>
>I do something similar, My OnStart just spraw a thread and then inside I
do
all the work, in this case the OnStart has NO code at all.

How do you manage to spawn a thread without having any code at all?

;)
I talk to it nicely :D
Jul 11 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.