A dead process

  • Thread starter Thread starter shawn
  • Start date Start date
S

shawn

A Windows service A which starts multiple instances of an application B at
random time.

Both A and B are written in C#.

It quite often shows in Task Manager that CPU time for B is 00:00:00 and
memory usage stay the same and never changes.

Can we assume that B is stuck based on this observation? Also, debug code at
the very beginning of B is never run through...

What could be the cause of the problem of B being stuck and how to debug it?

Thanks in advance!
 
shawn said:
A Windows service A which starts multiple instances of an application B at
random time.

Both A and B are written in C#.

It quite often shows in Task Manager that CPU time for B is 00:00:00 and
memory usage stay the same and never changes.

Can we assume that B is stuck based on this observation? Also, debug code at
the very beginning of B is never run through...

What could be the cause of the problem of B being stuck and how to debug it?

Thanks in advance!
Just as a hunch, could the program be attempting to display a message box?

If it's started by a service, it will most likely run under a different
user context than the logged on interactive user, so message boxes might
not be displayed.
 
Lasse Vågsæther Karlsen said:
Just as a hunch, could the program be attempting to display a message box?

If it's started by a service, it will most likely run under a different
user context than the logged on interactive user, so message boxes might
not be displayed.

Thanks, Lasse!

First, Application B is a console one. Of course, it could cause some
Windows error/warning messagebox popped up.

Second, most instances of B running and shutting down themselves fine while
one or two of B hanging there.

"a different user context than the logged on interactive user"

I'm not sure what's this and how to check on it...Could you elaborate this?
 
Please check this:
Whether you wrote a MessageBos.Show(ex.ToString()) in catch block of TRY.

Remove all MessageBox or other UI like Form. Windows Service of c# cannot
support those.
 
From: shawn [mailto:[email protected]]
Posted At: Monday, 10 December 2007 3:18 AM
Posted To: microsoft.public.dotnet.languages.csharp
Conversation: A dead process
Subject: A dead process

A Windows service A which starts multiple instances of an application B
at
random time.

Both A and B are written in C#.

It quite often shows in Task Manager that CPU time for B is 00:00:00
and
memory usage stay the same and never changes.

Can we assume that B is stuck based on this observation? Also, debug
code at
the very beginning of B is never run through...

What could be the cause of the problem of B being stuck and how to
debug it?

Thanks in advance!

Hi shawn,

Is it possible for you to post the code listing for B? Or more
specifically, the parts that are called when the service is started.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top