473,466 Members | 1,320 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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!
Dec 9 '07 #1
4 1336
shawn wrote:
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
mailto:la***@vkarlsen.no
http://presentationmode.blogspot.com/
Dec 9 '07 #2
Lasse Vågsæther Karlsen <la***@vkarlsen.nowrote in message
news:e$**************@TK2MSFTNGP06.phx.gbl...
shawn wrote:
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.
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?
Dec 9 '07 #3
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.

"shawn" <sh*******@yahoo.comwrote in message
news:OJ**************@TK2MSFTNGP02.phx.gbl...
Lasse Vågsæther Karlsen <la***@vkarlsen.nowrote in message
news:e$**************@TK2MSFTNGP06.phx.gbl...
>shawn wrote:
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.

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?

Dec 11 '07 #4
From: shawn [mailto:sh*******@yahoo.com]
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.
Dec 12 '07 #5

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

Similar topics

2
by: seash | last post by:
hi I wrote a class like this.......in my application. public class cls { public static extern bool myApp ( ref string aa,
3
by: Graeme Hinchliffe | last post by:
Hiya I have now managed to get my code to function correctly for a none present db, and one that is shutdown whilst it is being used. In both cases my code functions and happily recovers on the...
2
by: Don | last post by:
How to stop a process which is running in a separate thread!!! I've got a class which performs some lengthy process in a background (separate) thread. And this lengthy process raises events...
4
by: bukzor | last post by:
Does anyone have a pythonic way to check if a process is dead, given the pid? This is the function I'm using is quite OS dependent. A good candidate might be "try: kill(pid)", since it throws an...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.